]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Copy over mac_len when cloning an skb
authorAlexey Dobriyan <adobriyan@sw.ru>
Sat, 17 Mar 2007 01:32:09 +0000 (18:32 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 23 Mar 2007 19:49:26 +0000 (12:49 -0700)
[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/skbuff.c

index de7801d589e74605ec0914d357abce7886a599f4..5299083077fa7eae3016356ac1273d398c88a050 100644 (file)
@@ -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;