From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:38907 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750788Ab2DPGHy (ORCPT ); Mon, 16 Apr 2012 02:07:54 -0400 Message-ID: <4F8BB735.4040409@qca.qualcomm.com> (sfid-20120416_080758_711876_EFBE74D9) Date: Mon, 16 Apr 2012 09:07:49 +0300 From: Kalle Valo MIME-Version: 1.0 To: Jesper Juhl CC: , , , Robert Love , "John W. Linville" , ath6kl-devel Subject: Re: [PATCH] ath6kl: fix memory leak in ath6kl_fwlog_block_read() References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Sender: linux-wireless-owner@vger.kernel.org List-ID: On 04/11/2012 11:41 PM, Jesper Juhl wrote: > If, in > drivers/net/wireless/ath/ath6kl/debug.c::ath6kl_fwlog_block_read(), > the call to wait_for_completion_interruptible() returns -ERESTARTSYS > then we'll return without freeing the (as yet unused) memory we > allocated for 'buf' - thus leaking it. > > Signed-off-by: Jesper Juhl Thanks, applied to ath6kl.git. Kalle From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Subject: Re: [PATCH] ath6kl: fix memory leak in ath6kl_fwlog_block_read() Date: Mon, 16 Apr 2012 09:07:49 +0300 Message-ID: <4F8BB735.4040409@qca.qualcomm.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: , , , Robert Love , "John W. Linville" , ath6kl-devel To: Jesper Juhl Return-path: In-Reply-To: Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On 04/11/2012 11:41 PM, Jesper Juhl wrote: > If, in > drivers/net/wireless/ath/ath6kl/debug.c::ath6kl_fwlog_block_read(), > the call to wait_for_completion_interruptible() returns -ERESTARTSYS > then we'll return without freeing the (as yet unused) memory we > allocated for 'buf' - thus leaking it. > > Signed-off-by: Jesper Juhl Thanks, applied to ath6kl.git. Kalle -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html