]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:35:54 +0000 (16:35 +0200)
commit4356a2c3f296503c8b420ae8adece053960a9f06
tree4fd4dcef272a1e12e0984386a71db04297b857b5
parent8dc9a27589a9bf5f0a7eb517543411adc185e957
drm/amd/display: Prevent crash when disable stream

[ Upstream commit 72d72e8fddbcd6c98e1b02d32cf6f2b04e10bd1c ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c