From: Marcelo Ricardo Leitner Date: Fri, 20 Mar 2015 14:37:17 +0000 (-0300) Subject: ipv6: invert join/leave anycast rtnl/socket locking order X-Git-Tag: omap-for-v4.1/fixes-rc1~141^2~196 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4a6853d8fb2b122686bc6a7c472956e87090f4e;p=pandora-kernel.git ipv6: invert join/leave anycast rtnl/socket locking order Commit baf606d9c9b1 ("ipv4,ipv6: grab rtnl before locking the socket") missed to update two setsockopt options, IPV6_JOIN_ANYCAST and IPV6_LEAVE_ANYCAST, causing a lock inverstion regarding to the updated ones. As ipv6_sock_ac_join and ipv6_sock_ac_leave are only called from do_ipv6_setsockopt, we are good to just move the rtnl lock upper. Fixes: baf606d9c9b1 ("ipv4,ipv6: grab rtnl before locking the socket") Reported-by: Ying Huang Signed-off-by: Marcelo Ricardo Leitner Signed-off-by: David S. Miller --- Reading git-diff-tree failed