Skip to content

Commit

Permalink
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Torvalds committed Dec 24, 2005
2 parents e5c34a5 + 291d809 commit 3bf3959
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
}
Expand Down Expand Up @@ -2782,6 +2782,9 @@ static void addrconf_verify(unsigned long foo)
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);
Expand Down

0 comments on commit 3bf3959

Please sign in to comment.