Commit fa073f13 authored by Dan Carpenter's avatar Dan Carpenter Committed by Alex Deucher

drm/amd/powerplay: unlock on error in smu_resume()

This function needs to drop the mutex before returning.

Fixes: f7e3a577 ("drm/amd/powerplay: check SMU engine readiness before proceeding on S3 resume")
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 6a1112da
...@@ -1384,7 +1384,7 @@ static int smu_resume(void *handle) ...@@ -1384,7 +1384,7 @@ static int smu_resume(void *handle)
ret = smu_start_smc_engine(smu); ret = smu_start_smc_engine(smu);
if (ret) { if (ret) {
pr_err("SMU is not ready yet!\n"); pr_err("SMU is not ready yet!\n");
return ret; goto failed;
} }
ret = smu_smc_table_hw_init(smu, false); ret = smu_smc_table_hw_init(smu, false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment