mirror-linux/drivers/gpu/drm/amd
Igor Artemiev b75aaebac2 drm/amd/display: Fix potential null dereference
[ Upstream commit 52f1783ff4 ]

The adev->dm.dc pointer can be NULL and dereferenced in amdgpu_dm_fini()
without checking.

Add a NULL pointer check before calling dc_dmub_srv_destroy().

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 9a71c7d317 ("drm/amd/display: Register DMUB service with DC")
Signed-off-by: Igor Artemiev <Igor.A.Artemiev@mcst.ru>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:03:15 +09:00
..
acp
amdgpu drm/amdgpu: register a vga_switcheroo client for MacBooks with apple-gmux 2023-05-11 23:03:07 +09:00
amdkfd drm/amdkfd: Get prange->offset after svm_range_vram_node_new 2023-04-06 12:10:58 +02:00
display drm/amd/display: Fix potential null dereference 2023-05-11 23:03:15 +09:00
include drm/amdgpu: Fix type of second parameter in odn_edit_dpm_table() callback 2022-12-31 13:33:01 +01:00
pm drm/amd/pm: re-enable the gfx imu when smu resume 2023-05-11 23:03:04 +09:00