提交 13a82e56 编写于 作者: S Shunfeng Yang 提交者: Yang Yingliang

RDMA/hns: Fixed wrong judgments in the goto branch

mainline inclusion
from mainline-v5.12
commit bb74fe7e
category: bugfix
bugzilla: NA
CVE: NA

When an error occurs, the qp_table must be cleared, regardless of
whether the SRQ feature is enabled.
Signed-off-by: NShunfeng Yang <yangshunfeng2@huawei.com>
Signed-off-by: NYangyang Li <liyangyang20@huawei.com>
Reviewed-by: Nchunzhi hu <huchunzhi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 5322d7fe
......@@ -1316,7 +1316,6 @@ static int hns_roce_setup_hca(struct hns_roce_dev *hr_dev)
return 0;
err_qp_table_free:
if (hr_dev->caps.flags & HNS_ROCE_CAP_FLAG_SRQ)
hns_roce_cleanup_qp_table(hr_dev);
err_cq_table_free:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册