diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-07-01 19:48:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-05 21:50:56 -0400 |
commit | fe76cda3081b502986f0c8b28b0cf8bfc27d44d5 (patch) | |
tree | bd45fceb43d838aad7d9dae054979386539abcf7 /net/ipv4 | |
parent | a99db196db1166a2159add4a3013e5df0ea126fa (diff) |
ipv4: use skb_dst_copy() in ip_copy_metadata()
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>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ip_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 7d1f4b4481a9..d6478521128e 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) | |||
411 | to->priority = from->priority; | 411 | to->priority = from->priority; |
412 | to->protocol = from->protocol; | 412 | to->protocol = from->protocol; |
413 | skb_dst_drop(to); | 413 | skb_dst_drop(to); |
414 | skb_dst_set(to, dst_clone(skb_dst(from))); | 414 | skb_dst_copy(to, from); |
415 | to->dev = from->dev; | 415 | to->dev = from->dev; |
416 | to->mark = from->mark; | 416 | to->mark = from->mark; |
417 | 417 | ||