Page MenuHomeFreeBSD

D61757.1795242014.diff
No OneTemporary

Authored By
Unknown
Size
837 B
Referenced Files
None
Subscribers
None

D61757.1795242014.diff

diff --git a/sys/dev/xen/gntdev/gntdev.c b/sys/dev/xen/gntdev/gntdev.c
--- a/sys/dev/xen/gntdev/gntdev.c
+++ b/sys/dev/xen/gntdev/gntdev.c
@@ -900,7 +900,7 @@
gref = gntdev_find_grefs(priv_user, index, 1);
if (gref) {
if (gref->notify == NULL)
- gref->notify = malloc(sizeof(*arg), M_GNTDEV,
+ gref->notify = malloc(sizeof(*gref->notify), M_GNTDEV,
M_WAITOK | M_ZERO);
return (copy_notify_helper(gref->notify, arg));
}
@@ -911,8 +911,8 @@
if (arg->index >= gmap->file_index &&
OFF_TO_IDX(arg->index - gmap->file_index) < gmap->count) {
if (gmap->notify == NULL)
- gmap->notify = malloc(sizeof(*arg), M_GNTDEV,
- M_WAITOK | M_ZERO);
+ gmap->notify = malloc(sizeof(*gmap->notify),
+ M_GNTDEV, M_WAITOK | M_ZERO);
error = copy_notify_helper(gmap->notify, arg);
break;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 21, 6:20 AM (6 m, 8 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41870385
Default Alt Text
D61757.1795242014.diff (837 B)

Event Timeline