summaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2019-05-12 21:57:57 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-25 10:53:04 +0200
commit7690f64b3cd8ff18cc63b6304ddf6cc8f0c86fe4 (patch)
tree0c693f03e75aac3081ff982956234e6ddee1162e /net/unix/sysctl_net_unix.c
parent483b26014fff2063cf1d62c37a697d6eff999c03 (diff)
RDMA: Directly cast the sockaddr union to sockaddr
commit 641114d2af312d39ca9bbc2369d18a5823da51c6 upstream. gcc 9 now does allocation size tracking and thinks that passing the member of a union and then accessing beyond that member's bounds is an overflow. Instead of using the union member, use the entire union with a cast to get to the sockaddr. gcc will now know that the memory extends the full size of the union. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions