aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_solaris.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-03-12 10:56:08 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-03-12 10:56:08 +0000
commit08dade96d99e5b978c727cc6bdb19661de1a4cca (patch)
treeb718ae3f5f17320c64cc33e43d9e7cd09e19e04b /tools/libxc/xc_solaris.c
parent8a5396dda140b7cadbd91d5afc1bb9f461dbcea4 (diff)
downloadxen-08dade96d99e5b978c727cc6bdb19661de1a4cca.tar.gz
xen-08dade96d99e5b978c727cc6bdb19661de1a4cca.tar.bz2
xen-08dade96d99e5b978c727cc6bdb19661de1a4cca.zip
Fix solaris xc_map_foreign_ranges()
Signed-off-by: John Levon <john.levon@sun.com>
Diffstat (limited to 'tools/libxc/xc_solaris.c')
-rw-r--r--tools/libxc/xc_solaris.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxc/xc_solaris.c b/tools/libxc/xc_solaris.c
index f88a928906..d32a537550 100644
--- a/tools/libxc/xc_solaris.c
+++ b/tools/libxc/xc_solaris.c
@@ -134,6 +134,8 @@ void *xc_map_foreign_ranges(int xc_handle, uint32_t dom,
if (rc)
goto ioctl_failed;
+ return addr;
+
ioctl_failed:
rc = munmap(addr, size);
if (rc == -1)