2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/amd/pm/powerplay
Ivan Stepchenko 357445e28f drm/amdgpu: Fix potential NULL pointer dereference in atomctrl_get_smc_sclk_range_table
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>
2024-12-10 10:26:50 -05:00
..
hwmgr drm/amdgpu: Fix potential NULL pointer dereference in atomctrl_get_smc_sclk_range_table 2024-12-10 10:26:50 -05:00
inc drm/amdgpu: partially revert powerplay __counted_by changes 2024-10-07 14:40:05 -04:00
smumgr drm/amd/pm: remove redundant tools_size check 2024-11-20 09:38:12 -05:00
amd_powerplay.c drm/amdgpu: pass ip_block in set_clockgating_state 2024-12-10 10:26:47 -05:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00