]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: check TG is non-null before checking if enabled
authorTaimur Hassan <syed.hassan@amd.com>
Tue, 20 Jun 2023 21:00:28 +0000 (17:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:18:13 +0000 (16:18 +0200)
commit278fccf587dd09fa9bbb76f244e176b03bdd6bd4
tree973ef90e28f9a0c2a9cd89d910375680f1cb4f79
parenta955e6a0e39d33519ea16ff3b5b884e91a0fcc75
drm/amd/display: check TG is non-null before checking if enabled

[ Upstream commit 5a25cefc0920088bb9afafeb80ad3dcd84fe278b ]

[Why & How]
If there is no TG allocation we can dereference a NULL pointer when
checking if the TG is enabled.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Alan Liu <haoping.liu@amd.com>
Signed-off-by: Taimur Hassan <syed.hassan@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/dcn10/dcn10_hw_sequencer.c