aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_evtchn.c
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-06-23 08:40:39 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-06-23 08:40:39 +0000
commit8a6c33ded164e72467aed3d2c4d4f41cc4665f33 (patch)
tree9cdae7c10f90bf0b753cc55578fb35d7c53ed67b /tools/libxc/xc_evtchn.c
parent40c6180f8265775557dff71a39f272898907f849 (diff)
downloadxen-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_evtchn.c')
-rw-r--r--tools/libxc/xc_evtchn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_evtchn.c b/tools/libxc/xc_evtchn.c
index 1c0294d83b..74e8468dd5 100644
--- a/tools/libxc/xc_evtchn.c
+++ b/tools/libxc/xc_evtchn.c
@@ -26,7 +26,7 @@ static int do_evtchn_op(int xc_handle, evtchn_op_t *op)
if ((ret = do_xen_hypercall(xc_handle, &hypercall)) < 0)
ERROR("do_evtchn_op: HYPERVISOR_event_channel_op failed: %d", ret);
- (void)munlock(op, sizeof(*op));
+ safe_munlock(op, sizeof(*op));
out:
return ret;
}