Skip to content

Commit

Permalink
[NET]: Copy mac_len in skb_clone() as well
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Mar 16, 2007
1 parent d5cc4a7 commit 3e6b3b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/core/skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3e6b3b2

Please sign in to comment.