[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120907170121.GF3647@sortiz-mobl>
Date: Fri, 7 Sep 2012 19:01:21 +0200
From: Samuel Ortiz <sameo@...ux.intel.com>
To: Wei Yongjun <weiyj.lk@...il.com>
Cc: lauro.venancio@...nbossa.org, aloisio.almeida@...nbossa.org,
davem@...emloft.net, yongjun_wei@...ndmicro.com.cn,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH] NFC: fix possible memory leak
Hi Wei,
On Sun, Sep 02, 2012 at 09:21:46PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
>
> 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 <yongjun_wei@...ndmicro.com.cn>
> ---
> 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 netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists