Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Dumazet and committed by
David S. Miller
19c6c8f5 de8261c2

+1 -1
+1 -1
drivers/net/ppp/ppp_generic.c
··· 2113 2113 2114 2114 skb->len += p->len; 2115 2115 skb->data_len += p->len; 2116 - skb->truesize += p->len; 2116 + skb->truesize += p->truesize; 2117 2117 2118 2118 if (p == tail) 2119 2119 break;