diff options
author | Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com> | 2013-04-03 08:02:07 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-11 16:29:04 +0200 |
commit | 140ef7f6b08ff8ebfe5da619036c21a6382d7df9 (patch) | |
tree | 8a82dea022477c385c8ccea390734326ed41cb33 /drivers/nfc | |
parent | 4b2a9532763ac22685505ae116254cab3746d71d (diff) | |
download | talos-obmc-linux-140ef7f6b08ff8ebfe5da619036c21a6382d7df9.tar.gz talos-obmc-linux-140ef7f6b08ff8ebfe5da619036c21a6382d7df9.zip |
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')
-rw-r--r-- | drivers/nfc/pn533.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index 80a6e7ceb161..ef8e44785b5e 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); |