aboutsummaryrefslogtreecommitdiff
path: root/scripts/pahole-version.sh
diff options
context:
space:
mode:
authorShang XiaoJing2022-10-27 22:03:31 +0800
committerDavid S. Miller2022-10-30 21:43:26 +0000
commit3a146b7e3099dc7cf3114f627d9b79291e2d2203 (patch)
tree28e335ba7e134ad15be2cc81c22be1891c08a041 /scripts/pahole-version.sh
parent7bf1ed6aff0f70434bd0cdd45495e83f1dffb551 (diff)
nfc: s3fwrn5: Fix potential memory leak in s3fwrn5_nci_send()
s3fwrn5_nci_send() will call s3fwrn5_i2c_write() or s3fwrn82_uart_write(), and free the skb if write() failed. However, even if the write() run succeeds, the skb will not be freed in write(). As the result, the skb will memleak. s3fwrn5_nci_send() should also free the skb when write() succeeds. Fixes: c04c674fadeb ("nfc: s3fwrn5: Add driver for Samsung S3FWRN5 NFC Chip") Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/pahole-version.sh')
0 files changed, 0 insertions, 0 deletions