Skip to content
Commit 641114d2 authored by Jason Gunthorpe's avatar Jason Gunthorpe
Browse files

RDMA: Directly cast the sockaddr union to sockaddr



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: default avatarJason Gunthorpe <jgg@mellanox.com>
parent b79656ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment