mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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 <roger.pau@entel.upc.edu> Acked-by: Ian Campbell <ian.campbell.com> Committed-by: Ian Jackson <ian.jackson.citrix.com> Reported-by: Olaf Hering <olaf@aepfle.de>
This commit is contained in:
1 parent
b21046d2ea
commit
9e0b821475
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||