ppp: avoid false drop_monitor false positives
Call consume_skb() in place of kfree_skb() were appropriate. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a50feda546
commit
968d70184d
@@ -588,7 +588,7 @@ ppp_sync_txmunge(struct syncppp *ap, struct sk_buff *skb)
|
||||
skb_reserve(npkt,2);
|
||||
skb_copy_from_linear_data(skb,
|
||||
skb_put(npkt, skb->len), skb->len);
|
||||
kfree_skb(skb);
|
||||
consume_skb(skb);
|
||||
skb = npkt;
|
||||
}
|
||||
skb_push(skb,2);
|
||||
@@ -656,7 +656,7 @@ ppp_sync_push(struct syncppp *ap)
|
||||
if (sent < ap->tpkt->len) {
|
||||
tty_stuffed = 1;
|
||||
} else {
|
||||
kfree_skb(ap->tpkt);
|
||||
consume_skb(ap->tpkt);
|
||||
ap->tpkt = NULL;
|
||||
clear_bit(XMIT_FULL, &ap->xmit_flags);
|
||||
done = 1;
|
||||
|
Reference in New Issue
Block a user