aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/mcast.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/mcast.c')
-rw-r--r--net/ipv6/mcast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index 20a3d8e2f6c6..d810cff818cf 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -2355,7 +2355,7 @@ static inline struct ifmcaddr6 *igmp6_mc_get_first(struct seq_file *seq)
2355{ 2355{
2356 struct ifmcaddr6 *im = NULL; 2356 struct ifmcaddr6 *im = NULL;
2357 struct igmp6_mc_iter_state *state = igmp6_mc_seq_private(seq); 2357 struct igmp6_mc_iter_state *state = igmp6_mc_seq_private(seq);
2358 struct net *net = state->p.net; 2358 struct net *net = seq_file_net(seq);
2359 2359
2360 state->idev = NULL; 2360 state->idev = NULL;
2361 for_each_netdev(net, state->dev) { 2361 for_each_netdev(net, state->dev) {
@@ -2486,7 +2486,7 @@ static inline struct ip6_sf_list *igmp6_mcf_get_first(struct seq_file *seq)
2486 struct ip6_sf_list *psf = NULL; 2486 struct ip6_sf_list *psf = NULL;
2487 struct ifmcaddr6 *im = NULL; 2487 struct ifmcaddr6 *im = NULL;
2488 struct igmp6_mcf_iter_state *state = igmp6_mcf_seq_private(seq); 2488 struct igmp6_mcf_iter_state *state = igmp6_mcf_seq_private(seq);
2489 struct net *net = state->p.net; 2489 struct net *net = seq_file_net(seq);
2490 2490
2491 state->idev = NULL; 2491 state->idev = NULL;
2492 state->im = NULL; 2492 state->im = NULL;