projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/net/ipv4/ip_output.c
b/net/ipv4/ip_output.c
index 7d1f4b4481a913128f214c6bd07ee08f25bc8f64..d6478521128e34a8e5b9429db464b772df343727 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;