mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +00: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 <waldemar.rymarkiewicz@tieto.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
4b2a953276
commit
140ef7f6b0
@ -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 New Issue
Block a user