Skip to content

Commit 6ee31b3

Browse files
Aurabindo Pillaialexdeucher
authored andcommitted
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 <[email protected]> Reviewed-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 2c4ce7e commit 6ee31b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ struct vba_vars_st {
11631163
double UrgBurstFactorLumaPre[DC__NUM_DPP__MAX];
11641164
double UrgBurstFactorChromaPre[DC__NUM_DPP__MAX];
11651165
bool NotUrgentLatencyHidingPre[DC__NUM_DPP__MAX];
1166-
bool LinkCapacitySupport[DC__NUM_DPP__MAX];
1166+
bool LinkCapacitySupport[DC__VOLTAGE_STATES];
11671167
bool VREADY_AT_OR_AFTER_VSYNC[DC__NUM_DPP__MAX];
11681168
unsigned int MIN_DST_Y_NEXT_START[DC__NUM_DPP__MAX];
11691169
unsigned int VFrontPorch[DC__NUM_DPP__MAX];

0 commit comments

Comments
 (0)