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
..
Kconfig
Makefile
core.c nfc: s3fwrn5: Fix potential memory leak in s3fwrn5_nci_send() 2022-11-21 08:31:53 +00:00
firmware.c nfc: s3fwrn5: simplify dereferencing pointer to struct device 2021-10-11 17:00:51 -07:00
firmware.h
i2c.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
nci.c nfc: s3fwrn5: simplify dereferencing pointer to struct device 2021-10-11 17:00:51 -07:00
nci.h nfc: constify nci_driver_ops (prop_ops and core_ops) 2021-07-25 09:21:21 +01:00
phy_common.c
phy_common.h
s3fwrn5.h
uart.c