From: Wei Yongjun Date: Sun, 2 Sep 2012 13:21:46 +0000 (+0800) Subject: NFC: Fix possible LLCP memory leak X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~31^2^2~10^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52da2449e10039d3bb04c598d24cb1a34530b716;p=pandora-kernel.git NFC: Fix possible LLCP memory leak 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 Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed