diff options
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r-- | net/ipv6/ndisc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 5b596659177c..d2d44dc22f19 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -1525,6 +1525,9 @@ static int ndisc_netdev_event(struct notifier_block *this, unsigned long event, | |||
1525 | { | 1525 | { |
1526 | struct net_device *dev = ptr; | 1526 | struct net_device *dev = ptr; |
1527 | 1527 | ||
1528 | if (dev->nd_net != &init_net) | ||
1529 | return NOTIFY_DONE; | ||
1530 | |||
1528 | switch (event) { | 1531 | switch (event) { |
1529 | case NETDEV_CHANGEADDR: | 1532 | case NETDEV_CHANGEADDR: |
1530 | neigh_changeaddr(&nd_tbl, dev); | 1533 | neigh_changeaddr(&nd_tbl, dev); |