From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752288Ab2IPXYE (ORCPT ); Sun, 16 Sep 2012 19:24:04 -0400 Received: from mga11.intel.com ([192.55.52.93]:24298 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751773Ab2IPXYC (ORCPT ); Sun, 16 Sep 2012 19:24:02 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,432,1344236400"; d="scan'208";a="222799411" Date: Mon, 17 Sep 2012 01:23:50 +0200 From: Samuel Ortiz To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] drivers/mfd/palmas.c: drop kfree of devm_kzalloc's data Message-ID: <20120916232350.GN3647@sortiz-mobl> References: <1344081632-4729-2-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1344081632-4729-2-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Julia, On Sat, Aug 04, 2012 at 02:00:31PM +0200, Julia Lawall wrote: > From: Julia Lawall > > Using kfree to free data allocated with devm_kzalloc causes double frees. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x; > @@ > > x = devm_kzalloc(...) > ... > ?-kfree(x); > // > > Signed-off-by: Julia Lawall > > --- > drivers/mfd/palmas.c | 1 - > 1 file changed, 1 deletion(-) Applied, thanks. Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/