diff options
author | Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com> | 2013-04-03 02:02:07 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-11 10:29:04 -0400 |
commit | 140ef7f6b08ff8ebfe5da619036c21a6382d7df9 (patch) | |
tree | 8a82dea022477c385c8ccea390734326ed41cb33 | |
parent | 4b2a9532763ac22685505ae116254cab3746d71d (diff) |
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>
-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) | |||
2253 | "Error %d when trying to perform data_exchange", rc); | 2253 | "Error %d when trying to perform data_exchange", rc); |
2254 | 2254 | ||
2255 | dev_kfree_skb(skb); | 2255 | dev_kfree_skb(skb); |
2256 | kfree(dev->cmd_complete_arg); | 2256 | kfree(dev->cmd_complete_mi_arg); |
2257 | 2257 | ||
2258 | error: | 2258 | error: |
2259 | pn533_send_ack(dev, GFP_KERNEL); | 2259 | pn533_send_ack(dev, GFP_KERNEL); |