[IPV6]: Fix dead lock.
[deliverable/linux.git] / net / ipv6 / addrconf.c
index 510220f2ae8bebafd56d0779479da8b8365a3103..d805241e439cf960c5233e801db26412069e77d5 100644 (file)
@@ -2467,9 +2467,11 @@ static void addrconf_dad_start(struct inet6_ifaddr *ifp, u32 flags)
                return;
        }
 
-       if (idev->if_flags & IF_READY)
+       if (idev->if_flags & IF_READY) {
                addrconf_dad_kick(ifp);
-       else {
+               spin_unlock_bh(&ifp->lock);
+       } else {
+               spin_unlock_bh(&ifp->lock);
                /*
                 * If the defice is not ready:
                 * - keep it tentative if it is a permanent address.
@@ -2478,8 +2480,6 @@ static void addrconf_dad_start(struct inet6_ifaddr *ifp, u32 flags)
                in6_ifa_hold(ifp);
                addrconf_dad_stop(ifp);
        }
-
-       spin_unlock_bh(&ifp->lock);
 out:
        read_unlock_bh(&idev->lock);
 }
This page took 0.025109 seconds and 5 git commands to generate.