kernel_samsung_a53x/drivers/infiniband/hw
Chengchang Tang 8f726d731b RDMA/hns: Fix uninitialized ucmd in hns_roce_create_qp_common()
[ Upstream commit c64e9710f9241e38a1c761ed1c1a30854784da66 ]

ucmd in hns_roce_create_qp_common() are not initialized. But it works fine
until new member sdb_addr is added to struct hns_roce_ib_create_qp.

If the user-mode driver uses an old version ABI, then the value of the new
member will be undefined after ib_copy_from_udata().

This patch fixes it by initialize this variable to 0. And the default value
of the new member sdb_addr will be 0 which is invalid.

Fixes: 0425e3e6e0c7 ("RDMA/hns: Support flush cqe for hip08 in kernel space")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20231017125239.164455-3-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:43:03 +01:00
..
bnxt_re Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cxgb4 RDMA/cxgb4: Check skb value for failure to allocate 2024-11-08 11:24:52 +01:00
efa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hfi1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns RDMA/hns: Fix uninitialized ucmd in hns_roce_create_qp_common() 2024-11-18 11:43:03 +01:00
i40iw Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlx4 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlx5 IB/mlx5: Fix rdma counter binding for RAW QP 2024-11-18 11:43:03 +01:00
mthca Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ocrdma Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedr Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qib Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usnic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmw_pvrdma Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00