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:
Roger Pau Monne committed 2012-01-19 11:17:35 +01:00
1 parent b21046d2ea
commit 9e0b821475
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.