diff options
author | Shang XiaoJing <shangxiaojing@huawei.com> | 2022-10-27 22:03:30 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-30 21:43:26 +0000 |
commit | 7bf1ed6aff0f70434bd0cdd45495e83f1dffb551 (patch) | |
tree | b7de31f00d8216c695de39fe50e7b8d5b0e96d75 /fs/Kconfig.binfmt | |
parent | 8e4aae6b8ca76afb1fb64dcb24be44ba814e7f8a (diff) | |
download | linux-stable-7bf1ed6aff0f70434bd0cdd45495e83f1dffb551.tar.gz linux-stable-7bf1ed6aff0f70434bd0cdd45495e83f1dffb551.tar.bz2 linux-stable-7bf1ed6aff0f70434bd0cdd45495e83f1dffb551.zip |
nfc: nxp-nci: Fix potential memory leak in nxp_nci_send()
nxp_nci_send() will call nxp_nci_i2c_write(), and only free skb when
nxp_nci_i2c_write() failed. However, even if the nxp_nci_i2c_write()
run succeeds, the skb will not be freed in nxp_nci_i2c_write(). As the
result, the skb will memleak. nxp_nci_send() should also free the skb
when nxp_nci_i2c_write() succeeds.
Fixes: dece45855a8b ("NFC: nxp-nci: Add support for NXP NCI chips")
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/Kconfig.binfmt')
0 files changed, 0 insertions, 0 deletions