aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/lapbether.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wan/lapbether.c')
-rw-r--r--drivers/net/wan/lapbether.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c
index ca8b3c3cb931..699b93406dfb 100644
--- a/drivers/net/wan/lapbether.c
+++ b/drivers/net/wan/lapbether.c
@@ -394,6 +394,9 @@ static int lapbeth_device_event(struct notifier_block *this,
394 struct lapbethdev *lapbeth; 394 struct lapbethdev *lapbeth;
395 struct net_device *dev = ptr; 395 struct net_device *dev = ptr;
396 396
397 if (dev->nd_net != &init_net)
398 return NOTIFY_DONE;
399
397 if (!dev_is_ethdev(dev)) 400 if (!dev_is_ethdev(dev))
398 return NOTIFY_DONE; 401 return NOTIFY_DONE;
399 402