aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index e581009cb09e..6bc85f7c31e3 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -2566,14 +2566,10 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,
2566 void *data) 2566 void *data)
2567{ 2567{
2568 struct net_device *dev = (struct net_device *) data; 2568 struct net_device *dev = (struct net_device *) data;
2569 struct inet6_dev *idev; 2569 struct inet6_dev *idev = __in6_dev_get(dev);
2570 int run_pending = 0; 2570 int run_pending = 0;
2571 int err; 2571 int err;
2572 2572
2573 if (event == NETDEV_UNREGISTER_FINAL)
2574 return NOTIFY_DONE;
2575
2576 idev = __in6_dev_get(dev);
2577 switch (event) { 2573 switch (event) {
2578 case NETDEV_REGISTER: 2574 case NETDEV_REGISTER:
2579 if (!idev && dev->mtu >= IPV6_MIN_MTU) { 2575 if (!idev && dev->mtu >= IPV6_MIN_MTU) {