]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit405dfd3bb217e0691d77225616e9179a80b420df
tree6058d9151248dd75acf635ae2306c79faf7ee653
parentdd80c10eaf1e5f0e18fafc03ed4b4b9eada53e80
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