diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-08-09 18:19:35 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-08-09 23:46:07 +0200 |
commit | 922983c2a1a2f679cd576eb7162f413c15a4e979 (patch) | |
tree | 48f8565eff0da8c49584a3bffc575b0cde447879 /include/rdma/ib_verbs.h | |
parent | RDMA/rxe: Set wqe->status correctly if an unexpected response is received (diff) | |
download | linux-922983c2a1a2f679cd576eb7162f413c15a4e979.tar.xz linux-922983c2a1a2f679cd576eb7162f413c15a4e979.zip |
IB/uverbs: Fix reading of 32 bit flags
This is missing a zeroing of the high bits of flags, and is also not
correct for big endian machines. Properly zero extend the 32 bit flags
into the 64 bit stack variable.
Reported-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Fixes: bccd06223f21 ("IB/uverbs: Add UVERBS_ATTR_FLAGS_IN to the specs language")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
0 files changed, 0 insertions, 0 deletions