From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Carstens Date: Mon, 08 Aug 2011 14:32:55 +0000 Subject: Re: [PATCH 5/9] drivers/s390/block/dasd_ioctl.c: add missing kfree Message-Id: <20110808143255.GA19688@osiris.boeblingen.de.ibm.com> List-Id: References: <1312802283-9107-5-git-send-email-julia@diku.dk> In-Reply-To: <1312802283-9107-5-git-send-email-julia@diku.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Julia Lawall Cc: Martin Schwidefsky , kernel-janitors@vger.kernel.org, linux390@de.ibm.com, Stefan Weinhuber , Arnd Bergmann , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org On Mon, Aug 08, 2011 at 01:17:59PM +0200, Julia Lawall wrote: > From: Julia Lawall > > Data is only used to temporarily hold information to be copied to the user > level, so it should be freed before leaving the function. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) [...] > Signed-off-by: Julia Lawall > > --- > drivers/s390/block/dasd_ioctl.c | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) Applied. Thanks!