]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix null point error
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 19 Oct 2018 02:46:53 +0000 (10:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Oct 2018 01:04:03 +0000 (20:04 -0500)
commit1d1b15a08e2711187fadee713c3184c375d80d21
tree057355430d6663577ad36f1b8bca8a037c45a099
parent405dfd3bb217e0691d77225616e9179a80b420df
drm/amdgpu: Fix null point error

need to check adev->powerplay.pp_funcs first, becasue from
AI, the smu ip can be disabled by user, and the pp_handle
is null in this case.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c