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>
Wed, 14 Feb 2024 22:13:28 +0000 (17:13 -0500)
commit616b39467e816851335277d817ec98b7a9b92758
tree79a8ed1b4395d7afdd0af9bbc89382fb9082b481
parenta8edc9cc0b14e3769bbc9b82d00e5e5fc6b5ff0a
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