projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a99db19
)
ipv4: use skb_dst_copy() in ip_copy_metadata()
author
Eric Dumazet
<eric.dumazet@gmail.com>
Thu, 1 Jul 2010 23:48:22 +0000
(23:48 +0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/ipv4/ip_output.c
b/net/ipv4/ip_output.c
index
7d1f4b4
..
d647852
100644
(file)
--- 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;