Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222051
b: refs/heads/master
c: 2de7957
h: refs/heads/master
i:
  222049: 92864f3
  222047: 26c0d4a
v: v3
  • Loading branch information
Lorenzo Colitti authored and David S. Miller committed Nov 12, 2010
1 parent 775cead commit e972987
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 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: 8f49c2703b33519aaaccc63f571b465b9d2b3a2d
refs/heads/master: 2de795707294972f6c34bae9de713e502c431296
24 changes: 8 additions & 16 deletions trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2740,10 +2740,6 @@ static int addrconf_ifdown(struct net_device *dev, int how)
/* Flag it for later restoration when link comes up */
ifa->flags |= IFA_F_TENTATIVE;
ifa->state = INET6_IFADDR_STATE_DAD;

write_unlock_bh(&idev->lock);

in6_ifa_hold(ifa);
} else {
list_del(&ifa->if_list);

Expand All @@ -2758,19 +2754,15 @@ static int addrconf_ifdown(struct net_device *dev, int how)
ifa->state = INET6_IFADDR_STATE_DEAD;
spin_unlock_bh(&ifa->state_lock);

if (state == INET6_IFADDR_STATE_DEAD)
goto put_ifa;
if (state == INET6_IFADDR_STATE_DEAD) {
in6_ifa_put(ifa);
} else {
__ipv6_ifa_notify(RTM_DELADDR, ifa);
atomic_notifier_call_chain(&inet6addr_chain,
NETDEV_DOWN, ifa);
}
write_lock_bh(&idev->lock);
}

__ipv6_ifa_notify(RTM_DELADDR, ifa);
if (ifa->state == INET6_IFADDR_STATE_DEAD)
atomic_notifier_call_chain(&inet6addr_chain,
NETDEV_DOWN, ifa);

put_ifa:
in6_ifa_put(ifa);

write_lock_bh(&idev->lock);
}

list_splice(&keep_list, &idev->addr_list);
Expand Down

0 comments on commit e972987

Please sign in to comment.