diff options
| author | Charles Han <[email protected]> | 2025-03-27 04:04:35 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-04-07 19:18:58 +0000 |
| commit | 820116a39f96bdc7d426c33a804b52f53700a919 (patch) | |
| tree | c04e8c052f5c4de17a3566364208a27df6436468 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | |
| parent | drm/amdgpu/gfx11: Implement the GFX11 KCQ pipe reset (diff) | |
| download | kernel-820116a39f96bdc7d426c33a804b52f53700a919.tar.gz kernel-820116a39f96bdc7d426c33a804b52f53700a919.zip | |
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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
0 files changed, 0 insertions, 0 deletions
