]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: restore the behavior of ipv6_sock_ac_drop()
authorWANG Cong <xiyou.wangcong@gmail.com>
Fri, 5 Sep 2014 21:33:00 +0000 (14:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Sep 2014 23:10:07 +0000 (16:10 -0700)
commit25a9c48bb2262c1ee71c3c4da9703ede5c24961b
treebe9fe4618a8948d3bbb719b8cf02c66e79dcf862
parenteb5bcc692d31514fb4943c7296af4bd69f7b3dee
ipv6: restore the behavior of ipv6_sock_ac_drop()

It is possible that the interface is already gone after joining
the list of anycast on this interface as we don't hold a refcount
for the device, in this case we are safe to ignore the error.

What's more important, for API compatibility we should not
change this behavior for applications even if it were correct.

Fixes: commit 4e6ecdf00eb19b1d ("ipv6: fix rtnl locking in setsockopt for anycast and multicast")
Cc: Sabrina Dubroca <sd@queasysnail.net>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/anycast.c