Skip to content

Commit

Permalink
ppp: fix truesize underestimation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Feb 13, 2012
1 parent de8261c commit 19c6c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ppp/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@ ppp_mp_reconstruct(struct ppp *ppp)

skb->len += p->len;
skb->data_len += p->len;
skb->truesize += p->len;
skb->truesize += p->truesize;

if (p == tail)
break;
Expand Down

0 comments on commit 19c6c8f

Please sign in to comment.