diff options
author | Chengchang Tang <tangchengchang@huawei.com> | 2023-10-17 15:52:34 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-10-19 09:49:40 +0300 |
commit | c64e9710f9241e38a1c761ed1c1a30854784da66 (patch) | |
tree | 81d0cc859458e0cadeba9b3885d135bd4e612ff7 /scripts/generate_rust_analyzer.py | |
parent | 9faef73ef4f6666b97e04d99734ac09251098185 (diff) | |
download | linux-c64e9710f9241e38a1c761ed1c1a30854784da66.tar.xz |
RDMA/hns: Fix uninitialized ucmd in hns_roce_create_qp_common()
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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions