diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-21 20:32:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:10:20 -0500 |
commit | 7fee0ca23711ce1a6b13d3ab78915809a72a59ec (patch) | |
tree | e2df8e3997d996749b5169df59a56f3df67158c5 /net/ipv4/ip_gre.c | |
parent | da0e28cb68a7e22b47c6ae1a5b12cb538c13c69f (diff) |
[NETNS]: Add netns parameter to inetdev_by_index.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_gre.c')
-rw-r--r-- | net/ipv4/ip_gre.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 8b81deb8ff1f..a74983d8c89c 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c | |||
@@ -1193,7 +1193,8 @@ static int ipgre_close(struct net_device *dev) | |||
1193 | { | 1193 | { |
1194 | struct ip_tunnel *t = netdev_priv(dev); | 1194 | struct ip_tunnel *t = netdev_priv(dev); |
1195 | if (ipv4_is_multicast(t->parms.iph.daddr) && t->mlink) { | 1195 | if (ipv4_is_multicast(t->parms.iph.daddr) && t->mlink) { |
1196 | struct in_device *in_dev = inetdev_by_index(t->mlink); | 1196 | struct in_device *in_dev; |
1197 | in_dev = inetdev_by_index(dev->nd_net, t->mlink); | ||
1197 | if (in_dev) { | 1198 | if (in_dev) { |
1198 | ip_mc_dec_group(in_dev, t->parms.iph.daddr); | 1199 | ip_mc_dec_group(in_dev, t->parms.iph.daddr); |
1199 | in_dev_put(in_dev); | 1200 | in_dev_put(in_dev); |