From: Alexey Dobriyan Date: Tue, 20 Mar 2007 22:24:20 +0000 (+0100) Subject: [NET]: Copy mac_len in skb_clone() as well X-Git-Tag: v2.6.16.45-rc1~19 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=f2654bc1df0c27d3be0167fddae403515e80dc9b;p=unionfs-2.6.25.y.git [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 Signed-off-by: David S. Miller Signed-off-by: Adrian Bunk --- diff --git a/net/core/skbuff.c b/net/core/skbuff.c index a26b2348bc9..890512eb66c 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -410,6 +410,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;