From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v2 14/15] xen/xsm: Add support for device tree Date: Tue, 18 Mar 2014 17:34:38 +0000 Message-ID: <532883AE.20604@citrix.com> 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> 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 1WPxuU-0005hu-PV for xen-devel@lists.xenproject.org; Tue, 18 Mar 2014 17:34:42 +0000 In-Reply-To: <1395163471.11824.41.camel@kazak.uk.xensource.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@lists.xenproject.org, Julien Grall , tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org 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. ~Andrew