From: Alexey Dobriyan Date: Sat, 17 Mar 2007 01:32:09 +0000 (-0700) Subject: Copy over mac_len when cloning an skb X-Git-Tag: v2.6.20.4~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50a9fe380636f5643ccf605767208b02cbc82254;p=thirdparty%2Fkernel%2Fstable.git Copy over mac_len when cloning an skb [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: Greg Kroah-Hartman --- diff --git a/net/core/skbuff.c b/net/core/skbuff.c index de7801d589e74..5299083077fa7 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -464,6 +464,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;