mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 07:29:12 -04:00
drm/amd/powerplay: unlock on error in smu_resume()
This function needs to drop the mutex before returning.
Fixes: f7e3a5776f ("drm/amd/powerplay: check SMU engine readiness before proceeding on S3 resume")
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
6a1112da65
commit
fa073f13a2
@@ -1384,7 +1384,7 @@ static int smu_resume(void *handle)
|
||||
ret = smu_start_smc_engine(smu);
|
||||
if (ret) {
|
||||
pr_err("SMU is not ready yet!\n");
|
||||
return ret;
|
||||
goto failed;
|
||||
}
|
||||
|
||||
ret = smu_smc_table_hw_init(smu, false);
|
||||
|
||||
Reference in New Issue
Block a user