linux-stable/drivers/nfc/s3fwrn5
Shang XiaoJing 60dcb5ff55 nfc: s3fwrn5: Fix potential memory leak in s3fwrn5_nci_send()
s3fwrn5_nci_send() won't free the skb when it failed for the check
before s3fwrn5_write(). As the result, the skb will memleak. Free the
skb when the check failed.

Fixes: c04c674fad ("nfc: s3fwrn5: Add driver for Samsung S3FWRN5 NFC Chip")
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: s3fwrn5: Fix potential memory leak in s3fwrn5_nci_send() 2022-11-21 08:31:53 +00:00
firmware.c
firmware.h
i2c.c
Kconfig
Makefile
nci.c
nci.h
phy_common.c
phy_common.h
s3fwrn5.h
uart.c