projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb92ff7
)
NFC: st21nfca: Free buffer in case no data are retrieved.
author
Christophe Ricard
<christophe.ricard@gmail.com>
Tue, 20 May 2014 20:21:54 +0000
(22:21 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 22 Jul 2014 23:04:30 +0000
(
01:04
+0200)
In case no data are retrieve through i2c or one specific case is not handled.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfca/i2c.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/st21nfca/i2c.c
b/drivers/nfc/st21nfca/i2c.c
index 3f954ed86d98e4346172e95098c985f35e8b7648..d10d837fb8880066322ec8cfc2156bc1d0124945 100644
(file)
--- a/
drivers/nfc/st21nfca/i2c.c
+++ b/
drivers/nfc/st21nfca/i2c.c
@@
-487,6
+487,8
@@
static irqreturn_t st21nfca_hci_irq_thread_fn(int irq, void *phy_id)
*/
nfc_hci_recv_frame(phy->hdev, phy->pending_skb);
phy->crc_trials = 0;
+ } else {
+ kfree_skb(phy->pending_skb);
}
phy->pending_skb = alloc_skb(ST21NFCA_HCI_LLC_MAX_SIZE * 2, GFP_KERNEL);