drm/amdgpu/powerplay: fix NULL pointer issue when SMU disabled
authorLikun Gao <Likun.Gao@amd.com>
Wed, 25 Dec 2019 09:42:35 +0000 (17:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 16:57:28 +0000 (11:57 -0500)
commite78adc5a1d34eda80f157e9af477284989a62bdb
tree1d6aae6e674846a1398c08cf3b6f1be32c128ec2
parentd2f925ff9a239a49339d785f721c8cd89b743539
drm/amdgpu/powerplay: fix NULL pointer issue when SMU disabled

Fix smu related NULL pointer issue which occurs when SMU is disabled.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c