RDMA/srp: Add more structure size checks
authorBart Van Assche <bvanassche@acm.org>
Mon, 24 May 2021 04:12:08 +0000 (21:12 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 May 2021 23:21:20 +0000 (20:21 -0300)
commitc838de1af141ee3bd23ea1781a7033375b54f35a
tree3b80b82f8b616d0fb622cb38c4b514dfd32c2188
parent17bb6b6bb50734a9e9629f08af8e251b5756b460
RDMA/srp: Add more structure size checks

Before modifying how the __packed attribute is used, add compile time
size checks for the structures that will be modified.

Link: https://lore.kernel.org/r/20210524041211.9480-3-bvanassche@acm.org
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Cc: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/srp/ib_srp.c