drm/amd/display: Fix Null point error if smu ip was disabled
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 19 Oct 2018 02:38:10 +0000 (10:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Oct 2018 01:03:43 +0000 (20:03 -0500)
commit6f059c641b31076248ba89d0f7e0e753946a8099
tree6058d9151248dd75acf635ae2306c79faf7ee653
parent355c8db13be409695956c666e839f654a99cfc2d
drm/amd/display: Fix Null point error if smu ip was disabled

from AI, SMU Ip is not indispensable to driver and can be
disabled by user via module parameter ip_block_mask.
so the pp_handle may be NULL.

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/display/amdgpu_dm/amdgpu_dm_pp_smu.c