Skip to content

Commit aeffc8f

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]> Cc: [email protected] # 6.0.x
1 parent bc21fe9 commit aeffc8f

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
@@ -1153,7 +1153,7 @@ struct vba_vars_st {
11531153
double UrgBurstFactorLumaPre[DC__NUM_DPP__MAX];
11541154
double UrgBurstFactorChromaPre[DC__NUM_DPP__MAX];
11551155
bool NotUrgentLatencyHidingPre[DC__NUM_DPP__MAX];
1156-
bool LinkCapacitySupport[DC__NUM_DPP__MAX];
1156+
bool LinkCapacitySupport[DC__VOLTAGE_STATES];
11571157
bool VREADY_AT_OR_AFTER_VSYNC[DC__NUM_DPP__MAX];
11581158
unsigned int MIN_DST_Y_NEXT_START[DC__NUM_DPP__MAX];
11591159
unsigned int VFrontPorch[DC__NUM_DPP__MAX];

0 commit comments

Comments
 (0)