diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-23 08:40:39 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-23 08:40:39 +0000 |
commit | 8a6c33ded164e72467aed3d2c4d4f41cc4665f33 (patch) | |
tree | 9cdae7c10f90bf0b753cc55578fb35d7c53ed67b /tools/libxc/xc_gnttab.c | |
parent | 40c6180f8265775557dff71a39f272898907f849 (diff) | |
download | xen-8a6c33ded164e72467aed3d2c4d4f41cc4665f33.tar.gz xen-8a6c33ded164e72467aed3d2c4d4f41cc4665f33.tar.bz2 xen-8a6c33ded164e72467aed3d2c4d4f41cc4665f33.zip |
bitkeeper revision 1.1726.2.3 (42ba7587nwhnhQJ_hDkHTk8kTKtAFw)
Make sure we save errno across error-path printfs and munlocks. Based
on a patch from Anthony Liguori.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xc_gnttab.c')
-rw-r--r-- | tools/libxc/xc_gnttab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_gnttab.c b/tools/libxc/xc_gnttab.c index ad23e68013..409539cb14 100644 --- a/tools/libxc/xc_gnttab.c +++ b/tools/libxc/xc_gnttab.c @@ -33,7 +33,7 @@ do_gnttab_op( int xc_handle, if ( (ret = do_xen_hypercall(xc_handle, &hypercall)) < 0 ) ERROR("do_gnttab_op: HYPERVISOR_grant_table_op failed: %d", ret); - (void)munlock(op, sizeof(*op)); + safe_munlock(op, sizeof(*op)); out: return ret; } |