From: Wei Liu Subject: Re: [PATCH for-4.6 v3] libxl: fix libxl__build_hvm error code return path Date: Thu, 13 Aug 2015 10:36:05 +0100 Message-ID: <20150813093604.GO7460@zion.uk.xensource.com> References: <1439454258-16800-1-git-send-email-wei.liu2@citrix.com> <1439457745.23981.29.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZPovk-0004zB-1Y for xen-devel@lists.xenproject.org; Thu, 13 Aug 2015 09:36:12 +0000 Content-Disposition: inline In-Reply-To: <1439457745.23981.29.camel@citrix.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: Ian Campbell Cc: Xen-devel , Wei Liu , Ian Jackson List-Id: xen-devel@lists.xenproject.org On Thu, Aug 13, 2015 at 10:22:25AM +0100, Ian Campbell wrote: > On Thu, 2015-08-13 at 09:24 +0100, Wei Liu wrote: > > @@ -1002,22 +1005,22 @@ int libxl__build_hvm(libxl__gc *gc, uint32_t > > domid, > > goto out; > > } > > > > - ret = hvm_build_set_params(ctx->xch, domid, info, state->store_port, > > At least this one doesn't return ERROR_*, it returns 0 or -1, assigning > such to rc is wrong and ultimately returning it from this function even > worse. > > Remind me why we aren't just taking Roger's original patch from < > 1438942688-7610-2-git-send-email-roger.pau@citrix.com> ? It seems we are > basically iterating towards it... > Maybe we should just take that patch, that would save me from doing another round. Wei.