Commit e9b24c7e authored by Roger Pau Monne's avatar Roger Pau Monne

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: default avatarRoger Pau Monne <>
Acked-by: Ian Campbell <>
Committed-by: Ian Jackson <>
Reported-by: default avatarOlaf Hering <>
parent e9f1b369
......@@ -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;
return hypercall->retval;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment