From: Roger Pau Monne Date: Thu, 19 Jan 2012 10:17:35 +0000 (+0100) Subject: libxc/NetBSD: return ioctl return value on error X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8917 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9e0b821475bca0f67e477b1f69a55def068f5800;p=xen.git libxc/NetBSD: return ioctl return value on error NetBSD libxc hypercall implementation was returning -errno on error, instead of the actual error value from ioctl. Returning error is easier to understand, and the caller can always check errno. Signed-off-by: Roger Pau Monne Acked-by: Ian Campbell Committed-by: Ian Jackson Reported-by: Olaf Hering --- diff --git a/tools/libxc/xc_netbsd.c b/tools/libxc/xc_netbsd.c index b6d67bbb8c..dbcb640828 100644 --- a/tools/libxc/xc_netbsd.c +++ b/tools/libxc/xc_netbsd.c @@ -103,7 +103,7 @@ static int netbsd_privcmd_hypercall(xc_interface *xch, xc_osdep_handle h, privcm * implementation. */ if (error < 0) - return -errno; + return error; else return hypercall->retval; }