From: Prike Liang Date: Mon, 24 Jun 2019 09:25:26 +0000 (+0800) Subject: drm/amd/powerplay:clean up the residual mutex for smu_hw_init X-Git-Tag: v5.3-rc1~81^2~10^2~7 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=1189413f9cd45e42dc8ce3dc4eacd6ae27269ef9;p=linux.git drm/amd/powerplay:clean up the residual mutex for smu_hw_init The mutex for procting SMU during hw_init was removed as system will be deadlock when smu_populate_umd_state_clk try get SMU mutex. Therefore need remove the residual mutex from failed path. Signed-off-by: Prike Liang Reviewed-by: Evan Quan Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index 29fb1965686a..9559127dd0ec 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -1044,7 +1044,6 @@ static int smu_hw_init(void *handle) return 0; failed: - mutex_unlock(&smu->mutex); return ret; }