Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: fix mutex list null pointer reference

Fix NULL pointer reference.

Signed-off-by: Pixel Ding <Pixel.Ding@amd.com>
Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Pixel Ding and committed by
Alex Deucher
db2c2a97 7b52db39

+2 -1
+2 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 2065 2065 2066 2066 DRM_INFO("amdgpu: finishing device.\n"); 2067 2067 adev->shutdown = true; 2068 - drm_crtc_force_disable_all(adev->ddev); 2068 + if (adev->mode_info.mode_config_initialized) 2069 + drm_crtc_force_disable_all(adev->ddev); 2069 2070 /* evict vram memory */ 2070 2071 amdgpu_bo_evict_vram(adev); 2071 2072 amdgpu_ib_pool_fini(adev);