aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ppp
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2012-02-12 23:23:24 -0500
committerDavid S. Miller <davem@davemloft.net>2012-02-13 16:04:40 -0500
commit19c6c8f58b5840fd4757233b4849f42687d2ef3a (patch)
treefd4379667cb5001edb2e7dd49347bf7fbdcc5a3d /drivers/net/ppp
parentde8261c2fa364397ed872fad1244d75364689168 (diff)
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>
Diffstat (limited to 'drivers/net/ppp')
-rw-r--r--drivers/net/ppp/ppp_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index edfa15d2e795..93a86397af36 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
@@ -2113,7 +2113,7 @@ ppp_mp_reconstruct(struct ppp *ppp)
2113 2113
2114 skb->len += p->len; 2114 skb->len += p->len;
2115 skb->data_len += p->len; 2115 skb->data_len += p->len;
2116 skb->truesize += p->len; 2116 skb->truesize += p->truesize;
2117 2117
2118 if (p == tail) 2118 if (p == tail)
2119 break; 2119 break;