Skip to content
Commit 1613f346 authored by Flora Cui's avatar Flora Cui Committed by Alex Deucher
Browse files

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: default avatarFlora Cui <flora.cui@amd.com>
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e3d833f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment