NFC: st95hf: Fix memleak in st95hf_in_send_cmd
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sun, 23 Aug 2020 07:23:43 +0000 (15:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2020 00:34:25 +0000 (17:34 -0700)
commitf97c04c316d8fea16dca449fdfbe101fbdfee6a2
tree792c9273222a916878d265c2e77a9d8906e54450
parent799b87120c243febc4241a95bf616735c3ccd361
NFC: st95hf: Fix memleak in st95hf_in_send_cmd

When down_killable() fails, skb_resp should be freed
just like when st95hf_spi_send() fails.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/st95hf/core.c