summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorIvan Stepchenko <sid@itb.spb.ru>2024-12-02 11:00:43 +0300
committerAlex Deucher <alexander.deucher@amd.com>2024-12-10 18:26:50 +0300
commit357445e28ff004d7f10967aa93ddb4bffa5c3688 (patch)
tree72d96ee34b4610276245acae5d09bbfba7d66574 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentde258d06fdab578b24c18756a6ed21a1b23db6d1 (diff)
downloadlinux-357445e28ff004d7f10967aa93ddb4bffa5c3688.tar.xz
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: a23eefa2f461 ("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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions