From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Ortiz Subject: Re: [PATCH] NFC: fix possible memory leak Date: Fri, 7 Sep 2012 19:01:21 +0200 Message-ID: <20120907170121.GF3647@sortiz-mobl> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: lauro.venancio-430g2QfJUUCGglJvpFV4uA@public.gmane.org, aloisio.almeida-430g2QfJUUCGglJvpFV4uA@public.gmane.org, davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org, yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org, linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Wei Yongjun Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org Hi Wei, On Sun, Sep 02, 2012 at 09:21:46PM +0800, Wei Yongjun wrote: > From: Wei Yongjun > > nfc_llcp_build_tlv() malloced the memory and should be free in > nfc_llcp_build_gb() after used, and the same in the error handling > case, otherwise it will cause memory leak. > > spatch with a semantic match is used to found this problem. > (http://coccinelle.lip6.fr/) > > Signed-off-by: Wei Yongjun > --- > net/nfc/llcp/llcp.c | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) Patch applied, thanks. Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/ -- 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