projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a968639
)
NFC: st21nfcb: Avoid use of skb after free
author
Christophe Ricard
<christophe.ricard@gmail.com>
Sun, 25 Jan 2015 22:33:23 +0000
(23:33 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 26 Jan 2015 22:14:33 +0000
(23:14 +0100)
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>
drivers/nfc/st21nfcb/ndlc.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/st21nfcb/ndlc.c
b/drivers/nfc/st21nfcb/ndlc.c
index ef0f997dae0a0713ba7caa30dbf9cd30936571c6..5fbf59d2138c1b0a0c723550905d37931a89bcbe 100644
(file)
--- 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);
}