diff options
author | Evan Quan <evan.quan@amd.com> | 2020-05-25 08:29:10 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-05-28 20:00:50 +0200 |
commit | 2b7ad277e96577e1349072f7e2bab047917ed10d (patch) | |
tree | fa35379376a7bd7c8c1d0883640862beecb1ae45 /Documentation/powerpc | |
parent | drm/amd/display: Make BREAK_TO_DEBUGGER() a debug print (diff) | |
download | linux-2b7ad277e96577e1349072f7e2bab047917ed10d.tar.xz linux-2b7ad277e96577e1349072f7e2bab047917ed10d.zip |
drm/amd/powerplay: check whether SMU IP is enabled before access
Since on early phase of bringup, the SMU IP may be not enabled or
supported. Without this, we may hit null pointer dereference on
accessing smu->adev.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Yong Zhao <Yong.Zhao@amd.com>
Tested-by: Yong Zhao <Yong.Zhao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'Documentation/powerpc')
0 files changed, 0 insertions, 0 deletions