drm/amd/display: Fix BSOD with NULL check
authorChris Park <Chris.Park@amd.com>
Wed, 14 Apr 2021 02:25:23 +0000 (22:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:35:50 +0000 (23:35 -0400)
commitb2d4b9f72fb14c1e6e4f0128964a84539a72d831
tree9ddd2c4542442efd84097cb7986503dee1a42c62
parent63de4f0413fe5487ba5a1ed04c92fa10ca6af7c7
drm/amd/display: Fix BSOD with NULL check

[Why]
CLK mgr is null for server settings.

[How]
Guard the function with NULL check.

Signed-off-by: Chris Park <Chris.Park@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Wayne Lin <waynelin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c