summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/pn533.c
diff options
context:
space:
mode:
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>2013-04-03 08:02:07 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-11 16:29:04 +0200
commit140ef7f6b08ff8ebfe5da619036c21a6382d7df9 (patch)
tree8a82dea022477c385c8ccea390734326ed41cb33 /drivers/nfc/pn533.c
parent4b2a9532763ac22685505ae116254cab3746d71d (diff)
downloadop-kernel-dev-140ef7f6b08ff8ebfe5da619036c21a6382d7df9.zip
op-kernel-dev-140ef7f6b08ff8ebfe5da619036c21a6382d7df9.tar.gz
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>
Diffstat (limited to 'drivers/nfc/pn533.c')
-rw-r--r--drivers/nfc/pn533.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c
index 80a6e7c..ef8e447 100644
--- a/drivers/nfc/pn533.c
+++ b/drivers/nfc/pn533.c
@@ -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);
OpenPOWER on IntegriCloud