mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: Anda-Maria Nicolae <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
a968639bca
commit
20842466ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue