diff options
author | Ziyang Xuan | 2021-10-13 15:50:12 +0800 |
---|---|---|
committer | Jakub Kicinski | 2021-10-13 17:44:29 -0700 |
commit | 58e7dcc9ca29c14e44267a4d0ea61e3229124907 (patch) | |
tree | 2ecc25c1f7838a9969bd0be35700ba65b3c5ef40 /lib | |
parent | 0911ab31896f0e908540746414a77dd63912748d (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