]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
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)
commit7179d24040d66de22e4710e943256be9e1045feb
tree057355430d6663577ad36f1b8bca8a037c45a099
parent6f059c641b31076248ba89d0f7e0e753946a8099
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