diff options
| author | Shang XiaoJing <[email protected]> | 2022-11-17 11:37:13 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-11-21 08:31:53 +0000 |
| commit | 614761e1119c994a7f19e4c9f37b1d2d7fe7306e (patch) | |
| tree | 99694089e5ca72411e50efc3aafcf58c89672407 /net/tipc/node.c | |
| parent | nfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send() (diff) | |
| download | kernel-614761e1119c994a7f19e4c9f37b1d2d7fe7306e.tar.gz kernel-614761e1119c994a7f19e4c9f37b1d2d7fe7306e.zip | |
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 <[email protected]>
Suggested-by: Pavel Machek <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
