Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168760
b: refs/heads/master
c: 82b3cc1
h: refs/heads/master
v: v3
  • Loading branch information
Ben McKeegan authored and David S. Miller committed Nov 17, 2009
1 parent 0a10d70 commit 90efb7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c0e1f68bce454d244e2eea6b0ab7b3a217c673d2
refs/heads/master: 82b3cc1a2f5e46300a9dec4a8cc8106dc20a4c23
11 changes: 9 additions & 2 deletions trunk/drivers/net/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1944,8 +1944,15 @@ ppp_receive_mp_frame(struct ppp *ppp, struct sk_buff *skb, struct channel *pch)
}

/* Pull completed packets off the queue and receive them. */
while ((skb = ppp_mp_reconstruct(ppp)))
ppp_receive_nonmp_frame(ppp, skb);
while ((skb = ppp_mp_reconstruct(ppp))) {
if (pskb_may_pull(skb, 2))
ppp_receive_nonmp_frame(ppp, skb);
else {
++ppp->dev->stats.rx_length_errors;
kfree_skb(skb);
ppp_receive_error(ppp);
}
}

return;

Expand Down

0 comments on commit 90efb7b

Please sign in to comment.