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:
Eric Dumazet
2012-05-18 20:23:00 +00:00
committed by David S. Miller
parent a50feda546
commit 968d70184d
5 changed files with 15 additions and 13 deletions

View File

@@ -613,7 +613,7 @@ ppp_async_encode(struct asyncppp *ap)
*buf++ = PPP_FLAG;
ap->olim = buf;
kfree_skb(ap->tpkt);
consume_skb(ap->tpkt);
ap->tpkt = NULL;
return 1;
}