NFC: pn533: Fix incorrect kfree of complete args
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Wed, 3 Apr 2013 06:02:07 +0000 (08:02 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 11 Apr 2013 14:29:04 +0000 (16:29 +0200)
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>
drivers/nfc/pn533.c

index 80a6e7c..ef8e447 100644 (file)
@@ -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);