mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
NFC: pn533: Fix incorrect kfree of complete args
We must free 'cmd_complete_mi_arg' and not 'cmd_complete_arg' when getting send error handling fragmented response. Signed-off-by: Waldemar Rymarkiewicz <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
4b2a953276
commit
140ef7f6b0
1 changed files with 1 additions and 1 deletions
|
|
@ -2253,7 +2253,7 @@ static void pn533_wq_mi_recv(struct work_struct *work)
|
|||
"Error %d when trying to perform data_exchange", rc);
|
||||
|
||||
dev_kfree_skb(skb);
|
||||
kfree(dev->cmd_complete_arg);
|
||||
kfree(dev->cmd_complete_mi_arg);
|
||||
|
||||
error:
|
||||
pn533_send_ack(dev, GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue