diff options
author | 2022-01-13 14:55:24 +0800 | |
---|---|---|
committer | 2022-01-14 17:52:47 -0500 | |
commit | 1613f346f86b25121aceb941d03ca927e57af20c (patch) | |
tree | 482dc2939cafdd2603cc5ebc25d078457d233884 /drivers/gpu/drm/amd/amdgpu | |
parent | drm/amdgpu: fix compile warning for ras_block_match_default (diff) | |
download | wireguard-linux-1613f346f86b25121aceb941d03ca927e57af20c.tar.xz wireguard-linux-1613f346f86b25121aceb941d03ca927e57af20c.zip |
drm/amd/pm: fix null ptr access
check null ptr first before access its element
v2: check adev->pm.dpm_enabled early in amdgpu_debugfs_pm_init()
Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions