]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix off-by-one error in DML
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Wed, 28 Apr 2021 22:38:54 +0000 (18:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Jun 2021 16:23:22 +0000 (12:23 -0400)
commite4e3678260e9734f6f41b4325aac0b171833a618
tree7682de58c473e483d4c55ecd655493f4fdf99c3a
parent3577e1678772ce3ede92af3a75b44a4b76f9b4ad
drm/amd/display: Fix off-by-one error in DML

[WHY]
For DCN30 and later, there is no data in DML arrays indexed by state at
index num_states.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Stylon Wang <stylon.wang@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/dml/dcn30/display_mode_vba_30.c