mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
ipv6: Take rcu_read_lock in __inet6_bind for mapped addresses
[ Upstream commitd4a7e9bb74] I realized the last patch calls dev_get_by_index_rcu in a branch not holding the rcu lock. Add the calls to rcu_read_lock and rcu_read_unlock. Fixes:ec90ad3349("ipv6: Consider sk_bound_dev_if when binding a socket to a v4 mapped address") Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a251a3fb98
commit
cdd8fac7ad
1 changed files with 4 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue