aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2013-04-18 21:25:42 -0400
committerSimon Horman <horms@verge.net.au>2013-04-22 22:43:06 -0400
commit9fd0fa7ac33bf073d81447b73d41c407fee54214 (patch)
tree8b95c78d6380cc650719e2977d2025026b6ddf3a /net/netfilter
parent0a925864c1038a78fd1cc9b048d9a2b1ae04b63e (diff)
ipvs: Avoid shadowing net variable in ip_vs_leave()
Flagged by sparse. Compile and sparse tested only. Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/ipvs/ip_vs_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
index a0d7bd342775..085b5880ab0d 100644
--- 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,
584#ifdef CONFIG_IP_VS_IPV6 584#ifdef CONFIG_IP_VS_IPV6
585 if (svc->af == AF_INET6) { 585 if (svc->af == AF_INET6) {
586 if (!skb->dev) { 586 if (!skb->dev) {
587 struct net *net = dev_net(skb_dst(skb)->dev); 587 struct net *net_ = dev_net(skb_dst(skb)->dev);
588 588
589 skb->dev = net->loopback_dev; 589 skb->dev = net_->loopback_dev;
590 } 590 }
591 icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_PORT_UNREACH, 0); 591 icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_PORT_UNREACH, 0);
592 } else 592 } else