diff options
author | Alexey Dobriyan <adobriyan@sw.ru> | 2007-03-16 18:32:09 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-03-23 12:49:26 -0700 |
commit | 50a9fe380636f5643ccf605767208b02cbc82254 (patch) | |
tree | 65dd1b9c850b65e2f2dfcbfcb0603590118206bb /net | |
parent | c92fc42fc79aa7c77c90d91c69144f2d9b94a71b (diff) |
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 <adobriyan@sw.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.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 de7801d589e7..5299083077fa 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; |