Skip to content

Commit

Permalink
drm/amd/powerplay: check whether SMU IP is enabled before access
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Evan Quan authored and Alex Deucher committed May 28, 2020
1 parent 1aad707 commit 2b7ad27
Showing 1 changed file with 113 additions and 153 deletions.
Loading

0 comments on commit 2b7ad27

Please sign in to comment.