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>
Wed, 27 Mar 2024 12:49:53 +0000 (08:49 -0400)
commit72d72e8fddbcd6c98e1b02d32cf6f2b04e10bd1c
tree22f4028734357d88e5dcd56139a1f41498080eb8
parenta99d81937526d60796a4462de459a85146851ccf
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