commit | 614761e1119c994a7f19e4c9f37b1d2d7fe7306e | [log] [tgz] |
---|---|---|
author | Shang XiaoJing <shangxiaojing@huawei.com> | Thu Nov 17 19:37:13 2022 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 21 08:31:53 2022 +0000 |
tree | 99694089e5ca72411e50efc3aafcf58c89672407 | |
parent | e204ead35401af5e120f653a133d54ee2595627e [diff] |
nfc: nxp-nci: Fix potential memory leak in nxp_nci_send() nxp_nci_send() won't free the skb when it failed for the check before write(). As the result, the skb will memleak. Free the skb when the check failed. Fixes: dece45855a8b ("NFC: nxp-nci: Add support for NXP NCI chips") Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com> Suggested-by: Pavel Machek <pavel@denx.de> Signed-off-by: David S. Miller <davem@davemloft.net>