[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>

authored by Michal Wrobel and committed by David S. Miller 2c12a74c 3a765aa5

+2
+2
net/ipv6/addrconf.c
··· 400 400 ipv6_dev_mc_dec(dev, &addr); 401 401 } 402 402 for (ifa=idev->addr_list; ifa; ifa=ifa->if_next) { 403 + if (ifa->flags&IFA_F_TENTATIVE) 404 + continue; 403 405 if (idev->cnf.forwarding) 404 406 addrconf_join_anycast(ifa); 405 407 else