Convert infiniband uverbs to struct_size
authorMatthew Wilcox <mawilcox@microsoft.com>
Thu, 7 Jun 2018 14:57:16 +0000 (07:57 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 12 Jun 2018 23:19:22 +0000 (16:19 -0700)
commit7654cb1ba7d0f312a6841d35d0f576db4723e8a3
tree70bce312ae6b47e962a8623e64dd2c525a013116
parent5b572e25c3649235969e4ada67cde27b5bb24979
Convert infiniband uverbs to struct_size

The flows were hidden from the C compiler; expose them as a zero-length
array to allow struct_size to work.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/infiniband/core/uverbs_cmd.c
include/rdma/ib_verbs.h