]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: fixed integer types and null check locations
authorSohaib Nadeem <sohaib.nadeem@amd.com>
Wed, 31 Jan 2024 21:40:37 +0000 (16:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:57 +0000 (13:34 +0100)
commit71783d1ff65204d69207fd156d4b2eb1d3882375
tree3d23470c11f44017b908ba803126bd566dcd54ec
parent622c827544ef300899a757f5b1d61554c2c3abcc
drm/amd/display: fixed integer types and null check locations

[ Upstream commit 0484e05d048b66d01d1f3c1d2306010bb57d8738 ]

[why]:
issues fixed:
- comparison with wider integer type in loop condition which can cause
infinite loops
- pointer dereference before null check

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Josip Pavic <josip.pavic@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Sohaib Nadeem <sohaib.nadeem@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/bios/bios_parser2.c
drivers/gpu/drm/amd/display/dc/link/link_validation.c