drm/amd/display: Fix NULL pointer dereference at hibernate
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 29 Nov 2023 00:35:09 +0000 (18:35 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Nov 2023 23:26:31 +0000 (18:26 -0500)
commitb719a9c15d52d4f56bdea8241a5d90fd9197ce99
tree57317e4c3c7a118b79bc6f400287ab585546b0e4
parent71225e1c930942cb1e042fc08c5cc0c4ef30e95e
drm/amd/display: Fix NULL pointer dereference at hibernate

During hibernate sequence the source context might not have a clk_mgr.
So don't use it to look for DML2 support.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2980
Fixes: 7966f319c66d ("drm/amd/display: Introduce DML2")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c