Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755615Ab2HTIbx (ORCPT ); Mon, 20 Aug 2012 04:31:53 -0400 Received: from sting.hengli.com.au ([178.18.18.71]:55515 "EHLO fornost.hengli.com.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753931Ab2HTIbv (ORCPT ); Mon, 20 Aug 2012 04:31:51 -0400 Date: Mon, 20 Aug 2012 16:31:44 +0800 From: Herbert Xu To: Julia Lawall Cc: Matt Mackall , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/6] drivers/char/hw_random/octeon-rng.c: drop frees of devm allocated data Message-ID: <20120820083143.GC22951@gondor.apana.org.au> References: <1344099049-15212-3-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1344099049-15212-3-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 30 On Sat, Aug 04, 2012 at 06:50:46PM +0200, Julia Lawall wrote: > From: Julia Lawall > > devm_kfree and devm_iounmap should not have to be explicitly used. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,d; > @@ > > x = devm_kzalloc(...) > ... > ?-devm_kfree(d,x); > // > > Signed-off-by: Julia Lawall Applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/