Skip to content

Commit

Permalink
ppp_generic: fix multilink fragment sizes
Browse files Browse the repository at this point in the history
Fix bug in multilink fragment size calculation introduced by
commit 9c70526
"ppp: ppp_mp_explode() redesign"

Signed-off-by: Ben McKeegan <ben@netservers.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ben McKeegan authored and David S. Miller committed Jun 4, 2010
1 parent 57f1553 commit 536e00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ static int ppp_mp_explode(struct ppp *ppp, struct sk_buff *skb)
flen = len;
if (nfree > 0) {
if (pch->speed == 0) {
flen = totlen/nfree;
flen = len/nfree;
if (nbigger > 0) {
flen++;
nbigger--;
Expand Down

0 comments on commit 536e00e

Please sign in to comment.