diff options
author | Ziyang Xuan <[email protected]> | 2021-10-13 15:50:32 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-10-13 17:44:29 -0700 |
commit | 291c932fc3692e4d211a445ba8aa35663831bac7 (patch) | |
tree | 1178e0802a707fcadd60aedfee8327c20b31ece5 /fs/btrfs/tree-mod-log.c | |
parent | 58e7dcc9ca29c14e44267a4d0ea61e3229124907 (diff) |
NFC: digital: fix possible memory leak in digital_in_send_sdd_req()
'skb' is allocated in digital_in_send_sdd_req(), but not free when
digital_in_send_cmd() failed, which will cause memory leak. Fix it
by freeing 'skb' if digital_in_send_cmd() return failed.
Fixes: 2c66daecc409 ("NFC Digital: Add NFC-A technology support")
Signed-off-by: Ziyang Xuan <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions