diff options
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index eff6bce453ee..cefb55ec3d62 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c | |||
@@ -860,6 +860,9 @@ static int fib_netdev_event(struct notifier_block *this, unsigned long event, vo | |||
860 | struct net_device *dev = ptr; | 860 | struct net_device *dev = ptr; |
861 | struct in_device *in_dev = __in_dev_get_rtnl(dev); | 861 | struct in_device *in_dev = __in_dev_get_rtnl(dev); |
862 | 862 | ||
863 | if (dev->nd_net != &init_net) | ||
864 | return NOTIFY_DONE; | ||
865 | |||
863 | if (event == NETDEV_UNREGISTER) { | 866 | if (event == NETDEV_UNREGISTER) { |
864 | fib_disable_ip(dev, 2); | 867 | fib_disable_ip(dev, 2); |
865 | return NOTIFY_DONE; | 868 | return NOTIFY_DONE; |