aboutsummaryrefslogtreecommitdiff
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorShang XiaoJing2022-10-27 22:03:32 +0800
committerDavid S. Miller2022-10-30 21:43:26 +0000
commit93d904a734a74c54d945a9884b4962977f1176cd (patch)
tree358abf6f470edc7dc072ccf4eb9782448606d4d9 /fs/pnode.c
parent3a146b7e3099dc7cf3114f627d9b79291e2d2203 (diff)
nfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send()
nfcmrvl_i2c_nci_send() will be called by nfcmrvl_nci_send(), and skb should be freed in nfcmrvl_i2c_nci_send(). However, nfcmrvl_nci_send() will only free skb when i2c_master_send() return >=0, which means skb will memleak when i2c_master_send() failed. Free skb no matter whether i2c_master_send() succeeds. Fixes: b5b3e23e4cac ("NFC: nfcmrvl: add i2c driver") Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/pnode.c')
0 files changed, 0 insertions, 0 deletions