diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-01-25 23:33:23 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-01-26 23:14:33 +0100 |
commit | 20842466ec6d823ae9d3991b86527b6a1460ec63 (patch) | |
tree | 8f4d228c436cf4642b87ebb7268022cc78a562e8 /drivers/nfc | |
parent | NFC: st21nfca: Remove unreachable code (diff) | |
download | linux-20842466ec6d823ae9d3991b86527b6a1460ec63.tar.xz linux-20842466ec6d823ae9d3991b86527b6a1460ec63.zip |
NFC: st21nfcb: Avoid use of skb after free
Do not insert in send queue the skb that contains unknown Packet Control
Byte
Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Anda-Maria Nicolae <anda-maria.nicolae@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/st21nfcb/ndlc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/st21nfcb/ndlc.c b/drivers/nfc/st21nfcb/ndlc.c index ef0f997dae0a..5fbf59d2138c 100644 --- a/drivers/nfc/st21nfcb/ndlc.c +++ b/drivers/nfc/st21nfcb/ndlc.c @@ -138,7 +138,7 @@ static void llt_ndlc_requeue_data_pending(struct llt_ndlc *ndlc) default: pr_err("UNKNOWN Packet Control Byte=%d\n", pcb); kfree_skb(skb); - break; + continue; } skb_queue_head(&ndlc->send_q, skb); } |