Unverified Commit fb74b7c6 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11490 RDMA/hns: Fix missing unlock of scc_mutex in error path

Merge Pull Request from: @cxh269 
 
Fix missing unlock of scc_mutex in error path.

Fixes: 5ea5896e RDMA/hns: Fix concurrency between sysfs store and FW configuration of scc params"

https://gitee.com/openeuler/kernel/issues/IAPZGZ 
 
Link:https://gitee.com/openeuler/kernel/pulls/11490

 

Reviewed-by: default avatarChengchang Tang <tangchengchang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parents 5cdf8021 79ff5cac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7611,6 +7611,7 @@ static int hns_roce_v2_config_scc_param(struct hns_roce_dev *hr_dev,
		ibdev_err_ratelimited(&hr_dev->ib_dev,
				      "failed to configure scc param, opcode: 0x%x, ret = %d.\n",
			le16_to_cpu(desc.opcode), ret);
		mutex_unlock(&scc_param->scc_mutex);
		return ret;
	}