]> git.dujemihanovic.xyz Git - linux.git/commit
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 21:05:32 +0000 (16:05 -0500)
commit9f7cb03e3c32613fb5891e10ce3ff9169b09ba69
tree4f2b081d5b7e1bd079802823dedf637ec232978e
parent3d71a8726e05a35beb9de394e86ce896d69e563f
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