drm/amd/display: Prevent crash when disable stream
authorChris Park <chris.park@amd.com>
Tue, 5 Mar 2024 22:41:15 +0000 (17:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Mar 2024 19:49:08 +0000 (15:49 -0400)
commitf2afc8d4c3d08b450dcf957a253333a4e3ed65f9
treeb54b855763a0545584b900121622374ffca8c8cf
parent414998f2a017b2463e84cfccb32a42af191f3780
drm/amd/display: Prevent crash when disable stream

[Why]
Disabling stream encoder invokes a function that no longer exists.

[How]
Check if the function declaration is NULL in disable stream encoder.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Chris Park <chris.park@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/hwss/dce110/dce110_hwseq.c