linux/drivers/infiniband/hw
Weihang Li 9e57a9aa69 RDMA/hns: Fix wrong judgments of udata->outlen
These judgments were used to keep the compatibility with older versions of
userspace that don't have the field named "cap_flags" in structure
hns_roce_ib_create_cq_resp. But it will be wrong to compare outlen with
the size of resp if another new field were added in resp. oulen should be
compared with the end offset of cap_flags in resp.

Fixes: 4f8f0d5e33 ("RDMA/hns: Package the flow of creating cq")
Link: https://lore.kernel.org/r/1583845569-47257-1-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-03-13 11:36:58 -03:00
..
bnxt_re RDMA/bnxt_re: Remove a redundant 'memset' 2020-03-10 14:33:21 -03:00
cxgb4 Linux 5.6-rc4 2020-03-04 13:11:06 -04:00
efa RDMA/efa: Do not delay freeing of DMA pages 2020-02-28 12:12:12 -04:00
hfi1 Linux 5.6-rc5 2020-03-10 12:49:09 -03:00
hns RDMA/hns: Fix wrong judgments of udata->outlen 2020-03-13 11:36:58 -03:00
i40iw RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
mlx4 RDMA/mlx4: Delete duplicated offsetofend implementation 2020-03-13 10:42:48 -03:00
mlx5 Merge branch 'mlx5_mr_cache' into rdma.git for-next 2020-03-13 11:11:07 -03:00
mthca RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
ocrdma RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
qedr RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
qib IB/hfi1, qib: Ensure RCU is locked when accessing list 2020-03-02 11:10:21 -04:00
usnic RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
vmw_pvrdma RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00