linux-stable/drivers/nfc
Shang XiaoJing 7bf1ed6aff nfc: nxp-nci: Fix potential memory leak in nxp_nci_send()
nxp_nci_send() will call nxp_nci_i2c_write(), and only free skb when
nxp_nci_i2c_write() failed. However, even if the nxp_nci_i2c_write()
run succeeds, the skb will not be freed in nxp_nci_i2c_write(). As the
result, the skb will memleak. nxp_nci_send() should also free the skb
when nxp_nci_i2c_write() succeeds.

Fixes: dece45855a ("NFC: nxp-nci: Add support for NXP NCI chips")
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-10-30 21:43:26 +00:00
..
fdp nfc: fdp: Fix potential memory leak in fdp_nci_send() 2022-10-30 21:43:26 +00:00
microread i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
nfcmrvl i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
nxp-nci nfc: nxp-nci: Fix potential memory leak in nxp_nci_send() 2022-10-30 21:43:26 +00:00
pn533 Merge tag 'v6.0-rc5' into i2c/for-mergewindow 2022-09-16 20:42:18 +01:00
pn544 i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
s3fwrn5 i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
st-nci i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
st21nfca i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
st95hf spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
Kconfig
Makefile
mei_phy.c
mei_phy.h
nfcsim.c
port100.c NFC: port100: fix use-after-free in port100_send_complete 2022-03-09 19:59:34 -08:00
trf7970a.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
virtual_ncidev.c nfc: virtual_ncidev: Fix memory leak in virtual_nci_send() 2022-10-20 21:13:04 -07:00