ipv4: use skb_dst_copy() in ip_copy_metadata()
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 1 Jul 2010 23:48:22 +0000 (23:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jul 2010 01:50:56 +0000 (18:50 -0700)
Avoid touching dst refcount in ip_fragment().

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c

index 7d1f4b4481a913128f214c6bd07ee08f25bc8f64..d6478521128e34a8e5b9429db464b772df343727 100644 (file)
@@ -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;