linux-sg2042/drivers/nfc/nfcmrvl
Shang XiaoJing e204ead354 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()
won't free the skb when it failed for the test_bit(). Free the skb when
test_bit() failed.

Fixes: b5b3e23e4c ("NFC: nfcmrvl: add i2c driver")
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:52 +00:00
..
Kconfig nfc: Fix Kconfig indentation 2019-11-20 12:30:40 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fw_dnld.c nfc: mrvl: drop unneeded memory allocation fail messages 2021-09-13 14:38:32 +01:00
fw_dnld.h nfc: mrvl: use SPDX-License-Identifier 2021-05-31 21:31:09 -07:00
i2c.c nfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send() 2022-11-21 08:31:52 +00:00
main.c nfc: nfcmrvl: main: reorder destructive operations in nfcmrvl_nci_unregister_dev to avoid bugs 2022-05-01 13:26:05 +01:00
nfcmrvl.h nfc: mrvl: constify static nfcmrvl_if_ops 2021-07-29 12:28:03 +01:00
spi.c nfc: nfcmrvl: Fix irq_of_parse_and_map() return value 2022-06-28 21:27:53 -07:00
uart.c nfc: mrvl: constify static nfcmrvl_if_ops 2021-07-29 12:28:03 +01:00
usb.c nfc: nfcmrvl: Fix memory leak in nfcmrvl_play_deferred 2022-06-08 10:18:10 -07:00