aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorLeo Li <[email protected]>2019-04-18 11:53:58 -0400
committerAlex Deucher <[email protected]>2019-04-23 17:27:25 -0500
commitbb20be7510203db17c6c09f888cf328e307f1701 (patch)
tree269b8421a28e63de42bd5b1c05012b07cf67fc65 /scripts/gdb/linux/proc.py
parent3b8cea6f645c909783455265f2cb0fb64fd68f51 (diff)
drm/amdgpu: Check if SW SMU is supported before accessing funcs
smu.ppt_funcs is only initialized for ASICs supporting SW SMU. On a Hawaii ASIC, attempting to access the udev attribute ATTRS{power_dpm_state} will cause a null pointer deref in amdgpu_get_dpm_state() because of this. Fix by checking if SW SMU is supported first. Signed-off-by: Leo Li <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions