]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix array index out of bound error in DCN32 DML
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Sat, 26 Nov 2022 00:13:41 +0000 (19:13 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Dec 2022 17:21:53 +0000 (12:21 -0500)
commit48b7ad99f73685313e651461f837e4531d05d7e6
tree6959319f4dbe07b40c7d95c14bedb0094aec0255
parent264038e888dae5c700e4fe875fa30966821f3b0c
drm/amd/display: fix array index out of bound error in DCN32 DML

[Why&How]
LinkCapacitySupport array is indexed with the number of voltage states and
not the number of max DPPs. Fix the error by changing the array
declaration to use the correct (larger) array size of total number of
voltage states.

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.0.x
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h