Commit 25f484a62e41be8020b9a31bf50a792baa58d2d4

Authored by Herbert Xu
Committed by David S. Miller
1 parent 8e365eec04

[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 <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -639,6 +639,7 @@
639 639 n->csum = skb->csum;
640 640 n->ip_summed = skb->ip_summed;
641 641  
  642 + n->truesize += skb->data_len;
642 643 n->data_len = skb->data_len;
643 644 n->len = skb->len;
644 645