# HG changeset patch # User John Levon <john.levon@sun.com> # Date 1236821819 25200 # Node ID 788c6721291faf9a2328d6249b26f76fc030bdfa # Parent 37664a50728c1bfed81a417d6ae7f9f73b3e34ab Fix solaris xc_map_foreign_ranges() Signed-off-by: John Levon <john.levon@sun.com> diff --git a/tools/libxc/xc_solaris.c b/tools/libxc/xc_solaris.c --- a/tools/libxc/xc_solaris.c +++ b/tools/libxc/xc_solaris.c @@ -134,6 +134,8 @@ void *xc_map_foreign_ranges(int xc_handl if (rc) goto ioctl_failed; + return addr; + ioctl_failed: rc = munmap(addr, size); if (rc == -1) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel