diff options
author | Colin Ian King <[email protected]> | 2021-06-23 19:24:37 +0100 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-06-24 09:16:42 -0300 |
commit | 6becfe913bda839ae27224a2ea9d6cfb07c3fa2d (patch) | |
tree | 3f59e951b4909ad403af6cd1222be8f9d98e7678 /lib/test_overflow.c | |
parent | 109d19a5eb3ddbdb87c43bfd4bcf644f4569da64 (diff) |
RDMA/bnxt_re: Fix uninitialized struct bit field rsvd1
The bit field rsvd1 in resp is not being initialized and garbage data is
being copied from the stack back to userspace via the ib_copy_to_udata
call. Fix this by setting the entire struct resp to zero; this will ensure
that further new bit fields in the future will be zero'd too.
Link: https://lore.kernel.org/r/[email protected]
Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: 879740517dab ("RDMA/bnxt_re: Update ABI to pass wqe-mode to user space")
Signed-off-by: Colin Ian King <[email protected]>
[jgg: remove extra zeroing]
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions