diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-09-27 17:53:33 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-09-27 20:15:54 -0300 |
commit | 11333be19c08b9277a87eb8c163217b8c362e91e (patch) | |
tree | c60c0ba3c1369fea82e5b5ecc63671b06a1b4822 /drivers/infiniband/sw/rxe/rxe_opcode.h | |
parent | IB/hfi1: Add ring consumer and producers traces (diff) | |
download | linux-dev-11333be19c08b9277a87eb8c163217b8c362e91e.tar.xz linux-dev-11333be19c08b9277a87eb8c163217b8c362e91e.zip |
RDMA/hfi1: Use struct_size() and flex_array_size() helpers
Make use of the struct_size() and flex_array_size() helpers instead of
open-coded versions, in order to avoid any potential type mistakes or
integer overflows that, in the worse scenario, could lead to heap
overflows.
Link: https://lore.kernel.org/r/20210927225333.GA192634@embeddedor
Link: https://github.com/KSPP/linux/issues/160
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_opcode.h')
0 files changed, 0 insertions, 0 deletions