inet: don't use sk_v6_rcv_saddr directly
authorJosef Bacik <jbacik@fb.com>
Thu, 19 Jan 2017 22:47:46 +0000 (17:47 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 19:35:51 +0000 (14:35 -0500)
commit319554f284dda9f2737d09df82ba3610bd8ddea3
tree7ea132a82c8010dc602d420da536db7e49c9bddc
parent7d982567f41e25a154b961c610303f23dfdd2820
inet: don't use sk_v6_rcv_saddr directly

When comparing two sockets we need to use inet6_rcv_saddr so we get a NULL
sk_v6_rcv_saddr if the socket isn't AF_INET6, otherwise our comparison function
can be wrong.

Fixes: 637bc8b ("inet: reset tb->fastreuseport when adding a reuseport sk")
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_connection_sock.c