drm/amd/display: Fix array-index-out-of-bounds in dml2
authorRoman Li <Roman.Li@amd.com>
Fri, 1 Dec 2023 13:25:40 +0000 (06:25 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2023 20:22:36 +0000 (15:22 -0500)
commit514a1cc940c264007805c02173dd5490c0a59f48
treefd2a5a9ffbb84c333bb1ba5a360fd69cdb99a669
parent87ce0e62694115cfe4210a17c269d6855d2a139b
drm/amd/display: Fix array-index-out-of-bounds in dml2

[Why]
UBSAN errors observed in dmesg.
array-index-out-of-bounds in dml2/display_mode_core.c

[How]
Fix the index.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c