From: Konrad Rzeszutek Wilk Subject: [PATCH 04/14] libxc: Fix xc_domain_get_tsc_info to return -1 instead of -Exx. Date: Mon, 16 Mar 2015 11:39:33 -0400 Message-ID: <1426520383-20855-5-git-send-email-konrad.wilk@oracle.com> References: <1426520383-20855-1-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YXX7T-0004kG-QO for xen-devel@lists.xenproject.org; Mon, 16 Mar 2015 15:39:55 +0000 In-Reply-To: <1426520383-20855-1-git-send-email-konrad.wilk@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, wei.liu2@citrix.com Cc: Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org We don't need to put fill errno because xc_hypercall_buffer_alloc fills the errno with the appropiate errno values and we just need to pass them up the stack. Signed-off-by: Konrad Rzeszutek Wilk --- 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