From: Ian Campbell Subject: Re: [PATCH] xen/arm: arch_domain_create: don't return 0 when alloc_xenheap_pages has failed Date: Mon, 9 Dec 2013 10:19:43 +0000 Message-ID: <1386584383.13126.30.camel@kazak.uk.xensource.com> References: <1386469952-21744-1-git-send-email-julien.grall@linaro.org> 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 1VpxwK-00056x-TO for xen-devel@lists.xenproject.org; Mon, 09 Dec 2013 10:19:49 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: xen-devel@lists.xenproject.org, Julien Grall , tim@xen.org, stefano.stabellini@citrix.com, patches@linaro.org List-Id: xen-devel@lists.xenproject.org On Sun, 2013-12-08 at 15:15 +0000, Stefano Stabellini wrote: > On Sun, 8 Dec 2013, Julien Grall wrote: > > The previous call before alloc_xenheap_pages reset rc to 0 if it success. > > If the latter fails, arch_domain_create will return 0 and Xen will consider > > the domain as valid. Move rc initialization later. > > > > Signed-off-by: Julien Grall > > > Acked-by: Stefano Stabellini + applied, thanks. Ian.