From: Ian Campbell Subject: Re: [PATCH] xen/arm: add_to_physmap_one: Avoid to map mfn 0 if an error occurs Date: Thu, 24 Oct 2013 15:00:57 +0100 Message-ID: <1382623257.22417.97.camel@hastur.hellion.org.uk> References: <1382545727-6595-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.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VZT5q-0003Zb-CE for xen-devel@lists.xenproject.org; Thu, 24 Oct 2013 22:09:26 +0000 In-Reply-To: <1382545727-6595-1-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, stefano.stabellini@eu.citrix.com, tim@xen.org, patches@linaro.org List-Id: xen-devel@lists.xenproject.org On Wed, 2013-10-23 at 17:28 +0100, Julien Grall wrote: > By default, the function add_to_physmap_one set mfn to 0. Some code paths that > result to an error, continue and the map the mfn 0 (valid on ARM) to the > slot given by the guest. > > To fix the problem, return directly an error if sanity check has failed. > > Signed-off-by: Julien Grall applied,thanks.