diff options
author | Ben McKeegan <ben@netservers.co.uk> | 2010-06-02 19:14:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-04 18:56:01 -0400 |
commit | 536e00e570c87f258554e919c444b81a7002e46d (patch) | |
tree | f7e13ef943936edda2bce1c3178c5966dfa3aae6 /drivers/net/ppp_generic.c | |
parent | 57f1553ee5d9f093660cc49098f494e17ed11668 (diff) |
ppp_generic: fix multilink fragment sizes
Fix bug in multilink fragment size calculation introduced by
commit 9c705260feea6ae329bc6b6d5f6d2ef0227eda0a
"ppp: ppp_mp_explode() redesign"
Signed-off-by: Ben McKeegan <ben@netservers.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ppp_generic.c')
-rw-r--r-- | drivers/net/ppp_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index c5f8eb102bf7..1b2c29150202 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c | |||
@@ -1422,7 +1422,7 @@ static int ppp_mp_explode(struct ppp *ppp, struct sk_buff *skb) | |||
1422 | flen = len; | 1422 | flen = len; |
1423 | if (nfree > 0) { | 1423 | if (nfree > 0) { |
1424 | if (pch->speed == 0) { | 1424 | if (pch->speed == 0) { |
1425 | flen = totlen/nfree; | 1425 | flen = len/nfree; |
1426 | if (nbigger > 0) { | 1426 | if (nbigger > 0) { |
1427 | flen++; | 1427 | flen++; |
1428 | nbigger--; | 1428 | nbigger--; |