ia64/xen-unstable

changeset 15590:b27add01a929

[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@cl.cam.ac.uk>
author kfraser@localhost.localdomain
date Thu Jul 12 14:14:29 2007 +0100 (2007-07-12)
parents e704430b5b32
children 48c8244c47c7
files tools/libxc/xc_linux.c
line diff
     1.1 --- a/tools/libxc/xc_linux.c	Thu Jul 12 11:49:02 2007 +0100
     1.2 +++ b/tools/libxc/xc_linux.c	Thu Jul 12 14:14:29 2007 +0100
     1.3 @@ -456,7 +456,7 @@ void *xc_gnttab_map_grant_refs(int xcg_h
     1.4  
     1.5      map->count = count;
     1.6      
     1.7 -    if ( ioctl(xcg_handle, IOCTL_GNTDEV_MAP_GRANT_REF, &map) )
     1.8 +    if ( ioctl(xcg_handle, IOCTL_GNTDEV_MAP_GRANT_REF, map) )
     1.9          goto out;
    1.10  
    1.11      addr = mmap(NULL, PAGE_SIZE * count, prot, MAP_SHARED, xcg_handle,