We don't need to put fill errno because xc_hypercall_buffer_alloc fills the errno with the appropriate errno values and we just need to pass them up the stack.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Acked-by: Ian Campbell <ian.campb...@citrix.com> --- tools/libxc/xc_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c index 845d1d7..2fed727 100644 --- a/tools/libxc/xc_domain.c +++ b/tools/libxc/xc_domain.c @@ -771,7 +771,7 @@ int xc_domain_get_tsc_info(xc_interface *xch, info = xc_hypercall_buffer_alloc(xch, info, sizeof(*info)); if ( info == NULL ) - return -ENOMEM; + return -1; domctl.cmd = XEN_DOMCTL_gettscinfo; domctl.domain = (domid_t)domid; -- 2.1.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel