diff options
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index e4e5fdc0430b..cf97d8a6326e 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -3299,6 +3299,9 @@ static int bond_netdev_event(struct notifier_block *this, unsigned long event, v | |||
3299 | { | 3299 | { |
3300 | struct net_device *event_dev = (struct net_device *)ptr; | 3300 | struct net_device *event_dev = (struct net_device *)ptr; |
3301 | 3301 | ||
3302 | if (event_dev->nd_net != &init_net) | ||
3303 | return NOTIFY_DONE; | ||
3304 | |||
3302 | dprintk("event_dev: %s, event: %lx\n", | 3305 | dprintk("event_dev: %s, event: %lx\n", |
3303 | (event_dev ? event_dev->name : "None"), | 3306 | (event_dev ? event_dev->name : "None"), |
3304 | event); | 3307 | event); |