diff options
| author | 2022-10-12 16:54:38 +0800 | |
|---|---|---|
| committer | 2022-10-18 22:12:36 -0400 | |
| commit | 5fa993737b29bffe931cc5d0feb87ebc34cd5bb3 (patch) | |
| tree | dcc3dcd47c99e138e755a8be230c4d4249b8ce3a /tools/scripts/ssh:/git@git.zx2c4.com | |
| parent | drm/amd/pm: disable cstate feature for gpu reset scenario (diff) | |
| download | linux-dev-5fa993737b29bffe931cc5d0feb87ebc34cd5bb3.tar.xz linux-dev-5fa993737b29bffe931cc5d0feb87ebc34cd5bb3.zip | |
drm/amd/pm: Init pm_attr_list when dpm is disabled
[Why]
In SRIOV multi-vf, dpm is always disabled, and pm_attr_list won't
be initialized. There will be a NULL pointer call trace after
removing the dpm check condition in amdgpu_pm_sysfs_fini.
BUG: kernel NULL pointer dereference, address: 0000000000000000
RIP: 0010:amdgpu_device_attr_remove_groups+0x20/0x90 [amdgpu]
Call Trace:
<TASK>
amdgpu_pm_sysfs_fini+0x2f/0x40 [amdgpu]
amdgpu_device_fini_hw+0xdf/0x290 [amdgpu]
[How]
List pm_attr_list should be initialized when dpm is disabled.
Fixes: a6ad27cec585fe ("drm/amd/pm: Remove redundant check condition")
Signed-off-by: ZhenGuo Yin <zhenguo.yin@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
