projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a92586
)
ipvs: Avoid shadowing net variable in ip_vs_leave()
author
Simon Horman
<horms@verge.net.au>
Fri, 19 Apr 2013 01:25:42 +0000
(10:25 +0900)
committer
Simon Horman
<horms@verge.net.au>
Tue, 23 Apr 2013 02:43:06 +0000
(11:43 +0900)
Flagged by sparse.
Compile and sparse tested only.
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_core.c
patch
|
blob
|
history
diff --git
a/net/netfilter/ipvs/ip_vs_core.c
b/net/netfilter/ipvs/ip_vs_core.c
index
a0d7bd3
..
085b588
100644
(file)
--- a/
net/netfilter/ipvs/ip_vs_core.c
+++ b/
net/netfilter/ipvs/ip_vs_core.c
@@
-584,9
+584,9
@@
int ip_vs_leave(struct ip_vs_service *svc, struct sk_buff *skb,
#ifdef CONFIG_IP_VS_IPV6
if (svc->af == AF_INET6) {
if (!skb->dev) {
- struct net *net = dev_net(skb_dst(skb)->dev);
+ struct net *net
_
= dev_net(skb_dst(skb)->dev);
- skb->dev = net->loopback_dev;
+ skb->dev = net
_
->loopback_dev;
}
icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_PORT_UNREACH, 0);
} else