NFC: st21nfca: add missed kfree_skb() in an error path
authorChuhong Yuan <hslester96@gmail.com>
Thu, 28 May 2020 10:20:37 +0000 (18:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 May 2020 00:04:14 +0000 (17:04 -0700)
commit3decabdc714ca56c944f4669b4cdec5c2c1cea23
tree3205aaf788eb77fea89e18bfc813e82b0e817d9f
parent96d10d5b192e7f064457fd957e6a3ce8c2dce4b4
NFC: st21nfca: add missed kfree_skb() in an error path

st21nfca_tm_send_atr_res() misses to call kfree_skb() in an error path.
Add the missed function call to fix it.

Fixes: 1892bf844ea0 ("NFC: st21nfca: Adding P2P support to st21nfca in Initiator & Target mode")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/st21nfca/dep.c