linux/drivers/gpu/drm/amd
Charles Han 64f3acc8c7 drm/amd/pp: Fix potential NULL pointer dereference in atomctrl_initialize_mc_reg_table
[ Upstream commit 820116a39f ]

The function atomctrl_initialize_mc_reg_table() and
atomctrl_initialize_mc_reg_table_v2_2() does not check the return
value of smu_atom_get_data_table(). If smu_atom_get_data_table()
fails to retrieve vram_info, it returns NULL which is later
dereferenced.

Fixes: b3892e2bb5 ("drm/amd/pp: Use atombios api directly in powerplay (v2)")
Fixes: 5f92b48cf6 ("drm/amd/pm: add mc register table initialization")
Signed-off-by: Charles Han <hanchunchao@inspur.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-06-19 15:31:34 +02:00
..
acp drivers/gpu: Fix misalignment in comment block 2024-05-29 14:48:30 -04:00
amdgpu drm/amdgpu: enlarge the VBIOS binary size limit 2025-05-29 11:02:54 +02:00
amdkfd drm/amdkfd: Correct F8_MODE for gfx950 2025-05-29 11:03:26 +02:00
amdxcp drm/amd/amdxcp: Fix warnings 2024-05-08 15:17:05 -04:00
display Revert "drm/amd/display: more liberal vmin/vmax update for freesync" 2025-06-10 07:13:00 -04:00
include drm/amdgpu: Set snoop bit for SDMA for MI series 2025-05-29 11:02:52 +02:00
pm drm/amd/pp: Fix potential NULL pointer dereference in atomctrl_initialize_mc_reg_table 2025-06-19 15:31:34 +02:00