aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-12-24 12:30:42 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-12-24 12:30:42 -0800
commit3bf395994da5c238c37e281b50a5dd5f2532dc0c (patch)
tree3af2bdf4772553906020a7323dce9282deeb4d07
parente5c34a57c8b3a94b8d2b329936f8b1cbcc765307 (diff)
parent291d809ba5c8d4d6d8812e3f185bdf57d539f594 (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
-rw-r--r--net/ipv6/addrconf.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 510220f2ae8..2a6439e3c91 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -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);
}
@@ -2782,6 +2782,9 @@ restart:
in6_ifa_hold(ifpub);
spin_unlock(&ifp->lock);
read_unlock(&addrconf_hash_lock);
+ spin_lock(&ifpub->lock);
+ ifpub->regen_count = 0;
+ spin_unlock(&ifpub->lock);
ipv6_create_tempaddr(ifpub, ifp);
in6_ifa_put(ifpub);
in6_ifa_put(ifp);