linux/drivers/gpu/drm/amd/pm
Ivan Stepchenko 6a30634a2e drm/amdgpu: Fix potential NULL pointer dereference in atomctrl_get_smc_sclk_range_table
[ Upstream commit 357445e28f ]

The function atomctrl_get_smc_sclk_range_table() does not check the return
value of smu_atom_get_data_table(). If smu_atom_get_data_table() fails to
retrieve SMU_Info table, it returns NULL which is later dereferenced.

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

In practice this should never happen as this code only gets called
on polaris chips and the vbios data table will always be present on
those chips.

Fixes: a23eefa2f4 ("drm/amd/powerplay: enable dpm for baffin.")
Signed-off-by: Ivan Stepchenko <sid@itb.spb.ru>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-02-08 09:51:45 +01:00
..
inc drm/amdgpu: open brace '{' following struct go on the same line 2023-07-25 13:44:00 -04:00
legacy-dpm drm/amdgpu: fix UBSAN warning in kv_dpm.c 2024-06-27 13:49:12 +02:00
powerplay drm/amdgpu: Fix potential NULL pointer dereference in atomctrl_get_smc_sclk_range_table 2025-02-08 09:51:45 +01:00
swsmu drm/amd/pm: update current_socclk and current_uclk in gpu_metrics on smu v13.0.7 2024-12-09 10:33:11 +01:00
amdgpu_dpm.c drm/amd/pm: avoid potential UBSAN issue on legacy asics 2023-06-09 09:36:34 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_pm.c drm/amd/pm: fix error flow in sensor fetching 2024-08-29 17:33:22 +02:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00