Commit 79ff5cac authored by Junxian Huang's avatar Junxian Huang Committed by zhangshuowen96
Browse files

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

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAPZGZ



----------------------------------------------------------------------

Fix missing unlock of scc_mutex in error path.

Fixes: 5ea5896e ("RDMA/hns: Fix concurrency between sysfs store and FW configuration of scc params")
Signed-off-by: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: default avatarXinghai Cen <cenxinghai@h-partners.com>
parent cbfb00d8
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;
	}