diff options
Diffstat (limited to 'net/netrom/af_netrom.c')
-rw-r--r-- | net/netrom/af_netrom.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index e969d1bc765c..3a4d479ea64e 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
@@ -106,6 +106,9 @@ static int nr_device_event(struct notifier_block *this, unsigned long event, voi | |||
106 | { | 106 | { |
107 | struct net_device *dev = (struct net_device *)ptr; | 107 | struct net_device *dev = (struct net_device *)ptr; |
108 | 108 | ||
109 | if (dev->nd_net != &init_net) | ||
110 | return NOTIFY_DONE; | ||
111 | |||
109 | if (event != NETDEV_DOWN) | 112 | if (event != NETDEV_DOWN) |
110 | return NOTIFY_DONE; | 113 | return NOTIFY_DONE; |
111 | 114 | ||