diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-11-09 11:03:56 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-11-09 11:03:56 +0100 |
commit | 5f61e927c7c47e696f7fe18ae3e7ea32a42e1d24 (patch) | |
tree | 7a6ad901990530176a4d56ec41bffd5bd886ba51 /net | |
parent | 289b5dceffbf83344a6e8dc319f8e2822edeab5f (diff) |
[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>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/skbuff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index c0029f93899d..09efe62fe017 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -582,6 +582,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; |