ppp: fix truesize underestimation

When building frag_list, head truesize should be sum of all frag
truesize.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eric Dumazet 2012-02-13 04:23:24 +00:00 committed by David S. Miller
parent de8261c2fa
commit 19c6c8f58b

View file

@ -2113,7 +2113,7 @@ ppp_mp_reconstruct(struct ppp *ppp)
skb->len += p->len; skb->len += p->len;
skb->data_len += p->len; skb->data_len += p->len;
skb->truesize += p->len; skb->truesize += p->truesize;
if (p == tail) if (p == tail)
break; break;