From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 14/15] xen/xsm: Add support for device tree Date: Tue, 18 Mar 2014 20:52:14 +0000 Message-ID: <5328B1FE.2090803@linaro.org> References: <1395065165-15915-1-git-send-email-julien.grall@linaro.org> <1395065165-15915-15-git-send-email-julien.grall@linaro.org> <1395163471.11824.41.camel@kazak.uk.xensource.com> <532883AE.20604@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WQ0zh-0003WB-MI for xen-devel@lists.xenproject.org; Tue, 18 Mar 2014 20:52:17 +0000 Received: by mail-ee0-f46.google.com with SMTP id t10so5850728eei.33 for ; Tue, 18 Mar 2014 13:52:16 -0700 (PDT) In-Reply-To: <532883AE.20604@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: Andrew Cooper , Ian Campbell Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org Hi Andrew and Ian, On 03/18/2014 05:34 PM, Andrew Cooper wrote: > On 18/03/14 17:24, Ian Campbell wrote: >> On Mon, 2014-03-17 at 14:06 +0000, Julien Grall wrote: >>> This patch adds a new module "xen,xsm-blob" to allow the user to load the XSM >>> policy when Xen is booting. >>> >>> Signed-off-by: Julien Grall >>> Acked-by: Daniel De Graaf >> Acked-by: Ian Campbell >>> + >>> + if ( policy_buffer ) >>> + xfree(policy_buffer); >> Is xfree(NULL) not ok in the same way free(NULL) is? > > xfree(NULL) is perfectly fine. The code should be tweaked. I will remove the if in the next version. Regards, -- Julien Grall