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 <roger.pau@entel.upc.edu>
Acked-by: Ian Campbell <ian.campbell.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Reported-by: default avatarOlaf Hering <olaf@aepfle.de>
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;
else
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