aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZiyang Xuan2021-10-13 15:50:12 +0800
committerJakub Kicinski2021-10-13 17:44:29 -0700
commit58e7dcc9ca29c14e44267a4d0ea61e3229124907 (patch)
tree2ecc25c1f7838a9969bd0be35700ba65b3c5ef40 /lib
parent0911ab31896f0e908540746414a77dd63912748d (diff)
NFC: digital: fix possible memory leak in digital_tg_listen_mdaa()
'params' is allocated in digital_tg_listen_mdaa(), but not free when digital_send_cmd() failed, which will cause memory leak. Fix it by freeing 'params' if digital_send_cmd() return failed. Fixes: 1c7a4c24fbfd ("NFC Digital: Add target NFC-DEP support") Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions