summaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorAlexey Dobriyan2007-03-16 23:00:46 +0100
committerDavid S. Miller2007-03-16 23:00:46 +0100
commit3e6b3b2e34ac2c72fa05b5e4b20bd88d64c298dc (patch)
tree316083929e53cbb2904729251384903bf0c8ddf1 /net/core/skbuff.c
parent[IPV4]: Do not disable preemption in trie_leaf_remove(). (diff)
downloadkernel-qcow2-linux-3e6b3b2e34ac2c72fa05b5e4b20bd88d64c298dc.tar.gz
kernel-qcow2-linux-3e6b3b2e34ac2c72fa05b5e4b20bd88d64c298dc.tar.xz
kernel-qcow2-linux-3e6b3b2e34ac2c72fa05b5e4b20bd88d64c298dc.zip
[NET]: Copy mac_len in skb_clone() as well
ANK says: "It is rarely used, that's wy it was not noticed. But in the places, where it is used, it should be disaster." Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r--net/core/skbuff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 820761f9eeef..702fa8f08747 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -463,6 +463,7 @@ struct sk_buff *skb_clone(struct sk_buff *skb, gfp_t gfp_mask)
memcpy(n->cb, skb->cb, sizeof(skb->cb));
C(len);
C(data_len);
+ C(mac_len);
C(csum);
C(local_df);
n->cloned = 1;