Commit 0c942b00 authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz

NFC: st21nfca: Free buffer when a bad frame is detected

When a bad frame is detected for a bad crc.
We were reallocating and loosing the previous frame pointer.
Signed-off-by: default avatarChristophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent a3c5d8fb
...@@ -476,6 +476,7 @@ static irqreturn_t st21nfca_hci_irq_thread_fn(int irq, void *phy_id) ...@@ -476,6 +476,7 @@ static irqreturn_t st21nfca_hci_irq_thread_fn(int irq, void *phy_id)
msleep(wait_tab[phy->crc_trials]); msleep(wait_tab[phy->crc_trials]);
phy->crc_trials++; phy->crc_trials++;
phy->current_read_len = 0; phy->current_read_len = 0;
kfree_skb(phy->pending_skb);
} else if (r > 0) { } else if (r > 0) {
/* /*
* We succeeded to read data from the CLF and * We succeeded to read data from the CLF and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment