Commit 536e00e5 authored by Ben McKeegan's avatar Ben McKeegan Committed by David S. Miller

ppp_generic: fix multilink fragment sizes

Fix bug in multilink fragment size calculation introduced by
commit 9c705260
"ppp: ppp_mp_explode() redesign"
Signed-off-by: default avatarBen McKeegan <ben@netservers.co.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 57f1553e
...@@ -1422,7 +1422,7 @@ static int ppp_mp_explode(struct ppp *ppp, struct sk_buff *skb) ...@@ -1422,7 +1422,7 @@ static int ppp_mp_explode(struct ppp *ppp, struct sk_buff *skb)
flen = len; flen = len;
if (nfree > 0) { if (nfree > 0) {
if (pch->speed == 0) { if (pch->speed == 0) {
flen = totlen/nfree; flen = len/nfree;
if (nbigger > 0) { if (nbigger > 0) {
flen++; flen++;
nbigger--; nbigger--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment