[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [LIBXC] Fix xc_map_grant_refs() function.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1184246069 -3600 # Node ID b27add01a92941ee032d47347cf0ff8c3fee3bde # Parent e704430b5b32ac1ac52361e402571ca28009fa7d [LIBXC] Fix xc_map_grant_refs() function. This patch fixes the xc_map_grant_refs() function, which would fail because, instead of passing the malloc()-ed ioctl argument pointer to the ioctl, the address of this pointer was being passed instead. Signed-off-by: Derek Murray <Derek.Murray@xxxxxxxxxxxx> --- tools/libxc/xc_linux.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r e704430b5b32 -r b27add01a929 tools/libxc/xc_linux.c --- a/tools/libxc/xc_linux.c Thu Jul 12 11:49:02 2007 +0100 +++ b/tools/libxc/xc_linux.c Thu Jul 12 14:14:29 2007 +0100 @@ -456,7 +456,7 @@ void *xc_gnttab_map_grant_refs(int xcg_h map->count = count; - if ( ioctl(xcg_handle, IOCTL_GNTDEV_MAP_GRANT_REF, &map) ) + if ( ioctl(xcg_handle, IOCTL_GNTDEV_MAP_GRANT_REF, map) ) goto out; addr = mmap(NULL, PAGE_SIZE * count, prot, MAP_SHARED, xcg_handle, _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |