From: Ian Campbell Subject: Re: [PATCH v2] libxc: check for xc_domain_get_guest_width failure and pass it down Date: Fri, 1 Nov 2013 13:12:30 +0000 Message-ID: <1383311550.672.64.camel@kazak.uk.xensource.com> References: <1383253436.5436.141.camel@dagon.hellion.org.uk> <1383265481-10649-1-git-send-email-mattjd@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1383265481-10649-1-git-send-email-mattjd@gmail.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: Matthew Daley Cc: Stefano Stabellini , Ian Jackson , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2013-11-01 at 13:24 +1300, Matthew Daley wrote: > ...in xc_cpuid_pv_policy. > > Coverity-ID: 1093050 > Signed-off-by: Matthew Daley > --- > v2: Return actual error from xc_domain_get_guest_width [...] > - xc_cpuid_pv_policy(xch, domid, input, regs); > + if ( xc_cpuid_pv_policy(xch, domid, input, regs) != 0 ) > + return -EINVAL; But then you throw it away again one step further up the chain? Ian.