Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194032
b: refs/heads/master
c: 27bdb2a
h: refs/heads/master
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Apr 13, 2010
1 parent ba061e7 commit 3880457
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 93fa159abe50d3c55c7f83622d3f5c09b6e06f4b
refs/heads/master: 27bdb2abcc5edb3526e25407b74bf17d1872c329
15 changes: 8 additions & 7 deletions trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2704,17 +2704,18 @@ static int addrconf_ifdown(struct net_device *dev, int how)
/* Flag it for later restoration when link comes up */
ifa->flags |= IFA_F_TENTATIVE;
in6_ifa_hold(ifa);
write_unlock_bh(&idev->lock);
} else {
list_del(&ifa->if_list);
ifa->dead = 1;
}
write_unlock_bh(&idev->lock);
write_unlock_bh(&idev->lock);

/* clear hash table */
spin_lock_bh(&addrconf_hash_lock);
hlist_del_init_rcu(&ifa->addr_lst);
__in6_ifa_put(ifa);
spin_unlock_bh(&addrconf_hash_lock);
/* clear hash table */
spin_lock_bh(&addrconf_hash_lock);
hlist_del_init_rcu(&ifa->addr_lst);
__in6_ifa_put(ifa);
spin_unlock_bh(&addrconf_hash_lock);
}

__ipv6_ifa_notify(RTM_DELADDR, ifa);
atomic_notifier_call_chain(&inet6addr_chain, NETDEV_DOWN, ifa);
Expand Down

0 comments on commit 3880457

Please sign in to comment.