]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Adding array index check to prevent memory corruption
authorLeo Chen <leo.chen@amd.com>
Mon, 7 Oct 2024 19:50:35 +0000 (15:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:50 +0000 (20:03 +0100)
commitdff526dc3e27f5484f5ba11471b9fbbe681467f2
tree7e54dcb71797211626c53265ee208712aedd2118
parent2da108b4b5fb7ec04d7e951418ed80e97f7c35ad
drm/amd/display: Adding array index check to prevent memory corruption

[ Upstream commit 2c437d9a0b496168e1a1defd17b531f0a526dbe9 ]

[Why & How]
Array indices out of bound caused memory corruption. Adding checks to
ensure that array index stays in bound.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Leo Chen <leo.chen@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@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/clk_mgr/dcn35/dcn35_clk_mgr.c