From: Eric Dumazet Date: Thu, 1 Jul 2010 23:48:22 +0000 (+0000) Subject: ipv4: use skb_dst_copy() in ip_copy_metadata() X-Git-Tag: v2.6.36-rc1~571^2~360 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe76cda3081b502986f0c8b28b0cf8bfc27d44d5;p=profile%2Fcommon%2Fkernel-common.git ipv4: use skb_dst_copy() in ip_copy_metadata() Avoid touching dst refcount in ip_fragment(). Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 7d1f4b4..d647852 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -411,7 +411,7 @@ static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from) to->priority = from->priority; to->protocol = from->protocol; skb_dst_drop(to); - skb_dst_set(to, dst_clone(skb_dst(from))); + skb_dst_copy(to, from); to->dev = from->dev; to->mark = from->mark;