net: remove delay at device dismantle
[deliverable/linux.git] / net / ipv6 / addrconf.c
index 6bc85f7c31e3c58a01a6d1aa351cd827584fad24..e581009cb09e83bc48512a109be9b77c74b9a64c 100644 (file)
@@ -2566,10 +2566,14 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,
                           void *data)
 {
        struct net_device *dev = (struct net_device *) data;
-       struct inet6_dev *idev = __in6_dev_get(dev);
+       struct inet6_dev *idev;
        int run_pending = 0;
        int err;
 
+       if (event == NETDEV_UNREGISTER_FINAL)
+               return NOTIFY_DONE;
+
+       idev = __in6_dev_get(dev);
        switch (event) {
        case NETDEV_REGISTER:
                if (!idev && dev->mtu >= IPV6_MIN_MTU) {
This page took 0.024181 seconds and 5 git commands to generate.