[PATCH net-next] ppp: fix truesize underestimation

Subsystems: networking drivers, ppp protocol drivers and compressors, the rest

STALE5298d

2 messages, 2 authors, 2012-02-13 · open the first message on its own page

[PATCH net-next] ppp: fix truesize underestimation

From: Eric Dumazet <hidden>
Date: 2012-02-13 14:23:28

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

Signed-off-by: Eric Dumazet <redacted>
---
 drivers/net/ppp/ppp_generic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index edfa15d..93a8639 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)
 
 				skb->len += p->len;
 				skb->data_len += p->len;
-				skb->truesize += p->len;
+				skb->truesize += p->truesize;
 
 				if (p == tail)
 					break;

Re: [PATCH net-next] ppp: fix truesize underestimation

From: David Miller <davem@davemloft.net>
Date: 2012-02-13 21:05:53

From: Eric Dumazet <redacted>
Date: Mon, 13 Feb 2012 15:23:24 +0100
When building frag_list, head truesize should be sum of all frag
truesize.

Signed-off-by: Eric Dumazet <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help