diff options
author | Michal Wrobel <xmxwx@asn.pl> | 2007-02-26 18:36:10 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-02-28 12:41:58 -0500 |
commit | 2c12a74cc4aeaebc378aa40ee11c7761a8ed05e0 (patch) | |
tree | cf234e9f4c5a8594c53107d6bf8e9a25787d49df /net/ipv6/addrconf.c | |
parent | 3a765aa528401c7aec2208f7ed1276b232b24c57 (diff) |
[IPV6]: anycast refcnt fix
This patch fixes a bug in Linux IPv6 stack which caused anycast address
to be added to a device prior DAD has been completed. This led to
incorrect reference count which resulted in infinite wait for
unregister_netdevice completion on interface removal.
Signed-off-by: Michal Wrobel <xmxwx@asn.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index f6ac65d36559..e16f1bba5dff 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -400,6 +400,8 @@ static void dev_forward_change(struct inet6_dev *idev) | |||
400 | ipv6_dev_mc_dec(dev, &addr); | 400 | ipv6_dev_mc_dec(dev, &addr); |
401 | } | 401 | } |
402 | for (ifa=idev->addr_list; ifa; ifa=ifa->if_next) { | 402 | for (ifa=idev->addr_list; ifa; ifa=ifa->if_next) { |
403 | if (ifa->flags&IFA_F_TENTATIVE) | ||
404 | continue; | ||
403 | if (idev->cnf.forwarding) | 405 | if (idev->cnf.forwarding) |
404 | addrconf_join_anycast(ifa); | 406 | addrconf_join_anycast(ifa); |
405 | else | 407 | else |