summaryrefslogtreecommitdiffstats
path: root/net/nfc/hci/shdlc.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-09-02 15:21:46 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-09-25 00:17:24 +0200
commit52da2449e10039d3bb04c598d24cb1a34530b716 (patch)
treeec8f1ede07653b09902edb4670efaa2b4cc9269d /net/nfc/hci/shdlc.c
parentNFC: Remove pointless conditional before HCI kfree_skb() (diff)
downloadlinux-52da2449e10039d3bb04c598d24cb1a34530b716.tar.xz
linux-52da2449e10039d3bb04c598d24cb1a34530b716.zip
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 <yongjun_wei@trendmicro.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions