diff options
Diffstat (limited to 'net/rose/af_rose.c')
-rw-r--r-- | net/rose/af_rose.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index 67e06ab7f854..509defe53ee5 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
@@ -197,6 +197,9 @@ static int rose_device_event(struct notifier_block *this, unsigned long event, | |||
197 | { | 197 | { |
198 | struct net_device *dev = (struct net_device *)ptr; | 198 | struct net_device *dev = (struct net_device *)ptr; |
199 | 199 | ||
200 | if (dev->nd_net != &init_net) | ||
201 | return NOTIFY_DONE; | ||
202 | |||
200 | if (event != NETDEV_DOWN) | 203 | if (event != NETDEV_DOWN) |
201 | return NOTIFY_DONE; | 204 | return NOTIFY_DONE; |
202 | 205 | ||