Thread (6 messages) flat view 6 messages, 3 authors, 2021-10-14

Re: [PATCH net 2/2] NFC: digital: fix possible memory leak in digital_in_send_sdd_req()

From: Krzysztof Kozlowski <hidden>
Date: 2021-10-13 09:36:31
Also in: lkml

On 13/10/2021 09:50, Ziyang Xuan wrote:
'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 <redacted>
---
 net/nfc/digital_technology.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Reviewed-by: Krzysztof Kozlowski <redacted>


Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help