From: Herbert Xu Date: Tue, 7 Nov 2006 22:57:15 +0000 (-0800) Subject: [NET]: Set truesize in pskb_copy X-Git-Tag: v2.6.19-rc6~71^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=25f484a62e41be8020b9a31bf50a792baa58d2d4;p=linux-2.6-omap-h63xx.git [NET]: Set truesize in pskb_copy Since pskb_copy tacks on the non-linear bits from the original skb, it needs to count them in the truesize field of the new skb. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/net/core/skbuff.c b/net/core/skbuff.c index f735455dc5d..b8b10635804 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -639,6 +639,7 @@ struct sk_buff *pskb_copy(struct sk_buff *skb, gfp_t gfp_mask) n->csum = skb->csum; n->ip_summed = skb->ip_summed; + n->truesize += skb->data_len; n->data_len = skb->data_len; n->len = skb->len;