WSL2-Linux-Kernel/drivers/nfc/fdp
Shang XiaoJing 44bc1868a4 nfc: fdp: Fix potential memory leak in fdp_nci_send()
[ Upstream commit 8e4aae6b8c ]

fdp_nci_send() will call fdp_nci_i2c_write that will not free skb in
the function. As a result, when fdp_nci_i2c_write() finished, the skb
will memleak. fdp_nci_send() should free skb after fdp_nci_i2c_write()
finished.

Fixes: a06347c04c ("NFC: Add Intel Fields Peak NFC solution 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 18:15:27 +01: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
fdp.c nfc: fdp: Fix potential memory leak in fdp_nci_send() 2022-11-10 18:15:27 +01:00
fdp.h nfc: fdp: constify several pointers 2021-07-29 12:28:03 +01:00
i2c.c nfc: fdp: constify several pointers 2021-07-29 12:28:03 +01:00