aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorLu Yao <[email protected]>2023-11-23 01:22:34 +0000
committerAlex Deucher <[email protected]>2023-11-29 21:49:23 +0000
commit7b194fdccb8458779687063e582cf218a0920c29 (patch)
treeb22905482eb00d617a2313033c9b08f8b23ef09e /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm/amd/pm: fix a memleak in aldebaran_tables_init (diff)
downloadkernel-7b194fdccb8458779687063e582cf218a0920c29.tar.gz
kernel-7b194fdccb8458779687063e582cf218a0920c29.zip
drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer
For 'AMDGPU_FAMILY_SI' family cards, in 'si_common_early_init' func, init 'didt_rreg' and 'didt_wreg' to 'NULL'. But in func 'amdgpu_debugfs_regs_didt_read/write', using 'RREG32_DIDT' 'WREG32_DIDT' lacks of relevant judgment. And other 'amdgpu_ip_block_version' that use these two definitions won't be added for 'AMDGPU_FAMILY_SI'. So, add null pointer judgment before calling. Reviewed-by: Christian König <[email protected]> Signed-off-by: Lu Yao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions