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:
daaf1e1
)
nfc: st-nci: Remove data from ack_pending_q when receiving a SYNC_ACK
author
Christophe Ricard
<
[email protected]
>
Fri, 14 Aug 2015 20:33:35 +0000
(22:33 +0200)
committer
Samuel Ortiz
<
[email protected]
>
Sun, 16 Aug 2015 22:35:07 +0000
(
00:35
+0200)
When receiving a NDLC PCB_SYNC_ACK the pending data was never
removed from ack_pending_q and cleared.
Cc:
[email protected]
Signed-off-by: Christophe Ricard <
[email protected]
>
Signed-off-by: Samuel Ortiz <
[email protected]
>
drivers/nfc/st-nci/ndlc.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/st-nci/ndlc.c
b/drivers/nfc/st-nci/ndlc.c
index 56c6a4cb4c9619ff7a35ccfbd568b998474dc636..bb08b16f45cfe9418bb24cc06e5d989e98768714 100644
(file)
--- a/
drivers/nfc/st-nci/ndlc.c
+++ b/
drivers/nfc/st-nci/ndlc.c
@@
-171,6
+171,8
@@
static void llt_ndlc_rcv_queue(struct llt_ndlc *ndlc)
if ((pcb & PCB_TYPE_MASK) == PCB_TYPE_SUPERVISOR) {
switch (pcb & PCB_SYNC_MASK) {
case PCB_SYNC_ACK:
+ skb = skb_dequeue(&ndlc->ack_pending_q);
+ kfree_skb(skb);
del_timer_sync(&ndlc->t1_timer);
del_timer_sync(&ndlc->t2_timer);
ndlc->t2_active = false;