linux/drivers/nfc/nxp-nci
Shang XiaoJing 614761e111 nfc: nxp-nci: Fix potential memory leak in nxp_nci_send()
nxp_nci_send() won't free the skb when it failed for the check before
write(). As the result, the skb will memleak. Free the skb when the
check failed.

Fixes: dece45855a ("NFC: nxp-nci: Add support for NXP NCI chips")
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Suggested-by: Pavel Machek <pavel@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-11-21 08:31:53 +00:00
..
core.c nfc: nxp-nci: Fix potential memory leak in nxp_nci_send() 2022-11-21 08:31:53 +00:00
firmware.c NFC: nxp-nci: remove unnecessary label 2021-06-18 12:57:30 -07:00
i2c.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
nxp-nci.h NFC: nxp-nci: Get rid of platform data 2019-07-29 08:56:26 -07:00