Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c851417 authored by Dan Carpenter's avatar Dan Carpenter Committed by Alex Deucher
Browse files

drm/amd/powerplay: Fix double unlock bug in smu_sys_set_pp_table()



We already unlocked a few lines earlier so this code unlocks twice on
the success path.

Fixes: 289921b0 ("drm/amd/powerplay: implement sysfs of pp_table for smu11 (v2)")
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarKevin Wang <kevin1.wang@amd.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8513027a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -187,6 +187,8 @@ int smu_sys_set_pp_table(struct smu_context *smu, void *buf, size_t size)
	if (ret)
		pr_info("smu reset failed, ret = %d\n", ret);

	return ret;

failed:
	mutex_unlock(&smu->mutex);
	return ret;