aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6mr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/ip6mr.c')
-rw-r--r--net/ipv6/ip6mr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 0b41aa2675f5..095bc453ff4c 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -935,7 +935,7 @@ static int ip6mr_device_event(struct notifier_block *this,
935 struct mif_device *v; 935 struct mif_device *v;
936 int ct; 936 int ct;
937 937
938 if (dev_net(dev) != &init_net) 938 if (!net_eq(dev_net(dev), &init_net))
939 return NOTIFY_DONE; 939 return NOTIFY_DONE;
940 940
941 if (event != NETDEV_UNREGISTER) 941 if (event != NETDEV_UNREGISTER)