diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-03-12 10:56:08 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-03-12 10:56:08 +0000 |
commit | 08dade96d99e5b978c727cc6bdb19661de1a4cca (patch) | |
tree | b718ae3f5f17320c64cc33e43d9e7cd09e19e04b /tools/libxc/xc_solaris.c | |
parent | 8a5396dda140b7cadbd91d5afc1bb9f461dbcea4 (diff) | |
download | xen-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.c | 2 |
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) |