]> git.dujemihanovic.xyz Git - linux.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)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Feb 2024 19:18:43 +0000 (14:18 -0500)
commit0484e05d048b66d01d1f3c1d2306010bb57d8738
tree18bf8c09f9fe00605fd685bc8b55ae5168accc1c
parent46806e59a87790760870d216f54951a5b4d545bc
drm/amd/display: fixed integer types and null check locations

[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>
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
drivers/gpu/drm/amd/display/dc/link/link_validation.c