Skip to content

Commit bbba251

Browse files
committed
drm/amdgpu: fix adev variable used in amdgpu_device_gpu_recover()
Use the correct adev variable for the drm_fb_helper in amdgpu_device_gpu_recover(). Noticed by inspection. Fixes: 087451f ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's.") Reviewed-by: Guchun Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 76f0544 commit bbba251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5164,7 +5164,7 @@ int amdgpu_device_gpu_recover_imp(struct amdgpu_device *adev,
51645164
*/
51655165
amdgpu_unregister_gpu_instance(tmp_adev);
51665166

5167-
drm_fb_helper_set_suspend_unlocked(adev_to_drm(adev)->fb_helper, true);
5167+
drm_fb_helper_set_suspend_unlocked(adev_to_drm(tmp_adev)->fb_helper, true);
51685168

51695169
/* disable ras on ALL IPs */
51705170
if (!need_emergency_restart &&

0 commit comments

Comments
 (0)