]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
RDMA/hns: Fixed wrong judgments in the goto branch
authorWenpeng Liang <liangwenpeng@huawei.com>
Sat, 30 Jan 2021 08:58:02 +0000 (16:58 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Mar 2021 14:09:25 +0000 (15:09 +0100)
commitca81be087fb7da31b66d3a2dd7291447e2782212
treeff9ea4a2a699e7a12a812914c11acf7ce6a89e97
parent90c6df9589df2e4ec55481bc807eef771811f5d6
RDMA/hns: Fixed wrong judgments in the goto branch

[ Upstream commit bb74fe7e81c8b2b65c6a351a247fdb9a969cbaec ]

When an error occurs, the qp_table must be cleared, regardless of whether
the SRQ feature is enabled.

Fixes: 5c1f167af112 ("RDMA/hns: Init SRQ table for hip08")
Link: https://lore.kernel.org/r/1611997090-48820-5-git-send-email-liweihang@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/infiniband/hw/hns/hns_roce_main.c