]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/bnxt_re: fix or'ing of data into an uninitialized struct member
authorColin Ian King <colin.king@canonical.com>
Mon, 11 Feb 2019 13:34:15 +0000 (13:34 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 11 Feb 2019 22:34:54 +0000 (15:34 -0700)
commita87145957eb9c474559b3acd2cfc6e8914b0e08f
tree608748fbe6ab3d863b8daa3a8dc3fcb5f6b59179
parentfc9e4477f924e84d7798f7a1d41401d699de1219
RDMA/bnxt_re: fix or'ing of data into an uninitialized struct member

The struct member comp_mask has not been initialized however a bit
pattern is being bitwise or'd into the member and hence other bit
fields in comp_mask may contain any garbage from the stack. Fix this
by making the bitwise or into an assignment.

Fixes: 95b86d1c91ad ("RDMA/bnxt_re: Update kernel user abi to pass chip context")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c