diff options
author | Charles Han <hanchunchao@inspur.com> | 2025-03-27 07:04:35 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-04-07 22:18:58 +0300 |
commit | 820116a39f96bdc7d426c33a804b52f53700a919 (patch) | |
tree | c04e8c052f5c4de17a3566364208a27df6436468 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
parent | d69248cf4c91949a7b83b3fd77c7c229336bb23c (diff) | |
download | linux-820116a39f96bdc7d426c33a804b52f53700a919.tar.xz |
drm/amd/pp: Fix potential NULL pointer dereference in atomctrl_initialize_mc_reg_table
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: b3892e2bb519 ("drm/amd/pp: Use atombios api directly in powerplay (v2)")
Fixes: 5f92b48cf62c ("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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions