android_kernel_xiaomi_sm7250/drivers/nfc
Shang XiaoJing c8e7d4a116 nfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send()
[ Upstream commit 93d904a734a74c54d945a9884b4962977f1176cd ]

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: b5b3e23e4c ("NFC: nfcmrvl: add i2c driver")
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-10 17:46:51 +01:00
..
fdp
microread
nfcmrvl nfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send() 2022-11-10 17:46:51 +01:00
nxp-nci NFC: nxp-nci: don't print header length mismatch on i2c error 2022-07-21 21:09:30 +02:00
pn533 nfc: pn533: Fix double free when pn533_fill_fragment_skbs() fails 2021-11-26 11:36:16 +01:00
pn544
s3fwrn5 nfc: s3fwrn5: Fix potential memory leak in s3fwrn5_nci_send() 2022-11-10 17:46:51 +01:00
st21nfca nfc: st21nfca: fix memory leaks in EVT_TRANSACTION handling 2022-06-14 16:59:39 +02:00
st95hf
st-nci
Kconfig
Makefile
mei_phy.c
mei_phy.h
nfcsim.c
port100.c NFC: port100: fix use-after-free in port100_send_complete 2022-03-16 13:20:26 +01:00
trf7970a.c