]> git.baikalelectronics.ru Git - kernel.git/commit
net: use inet6_rcv_saddr to compare sockets
authorJosef Bacik <jbacik@fb.com>
Sat, 23 Sep 2017 00:20:07 +0000 (20:20 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Sep 2017 03:33:17 +0000 (20:33 -0700)
commita5b695363969b9fc48d6f719c154cb2792efddd8
tree05334284c59555cb55a7de7322dd3dd7a10af214
parente46a2abc23a55deac2ea61a7f95bbb95d7da4c46
net: use inet6_rcv_saddr to compare sockets

In ipv6_rcv_saddr_equal() we need to use inet6_rcv_saddr(sk) for the
ipv6 compare with the fast socket information to make sure we're doing
the proper comparisons.

Fixes: dd4b4cdf5147 ("inet: reset tb->fastreuseport when adding a reuseport sk")
Reported-and-tested-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_connection_sock.c