diff options
author | Hersen Wu <[email protected]> | 2024-04-26 19:44:44 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-05-02 16:18:17 -0400 |
commit | ca46da75cab99381b8c9f181de50a8022c2862c8 (patch) | |
tree | 0b6416367032437d1d795b2e7be35ca37b2fbd91 | |
parent | 3d49b60030bf888a6244aaf3e98965cf8e78a965 (diff) |
drm/amd/display: Fix wrong array size dummy_boolean of dml2_core_calcs_mode_support_locals
[Why]
Coverity reports OVERRUN warning for
CalculateSwathAndDETConfiguration_params->hw_debug5
= &s->dummy_boolean[2].
bool dummy_boolean[2] is defined within
struct dml2_core_calcs_mode_support_locals.
[How]
Change array size from 2 to 3.
Reviewed-by: Aurabindo Pillai <[email protected]>
Acked-by: Tom Chung <[email protected]>
Signed-off-by: Hersen Wu <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared_types.h b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared_types.h index baded2315254..240835159531 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared_types.h +++ b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared_types.h @@ -854,7 +854,7 @@ struct dml2_core_calcs_mode_support_locals { unsigned int meta_row_height_luma[DML2_MAX_PLANES]; unsigned int meta_row_height_chroma[DML2_MAX_PLANES]; - bool dummy_boolean[2]; + bool dummy_boolean[3]; unsigned int dummy_integer[3]; unsigned int dummy_integer_array[36][DML2_MAX_PLANES]; enum dml2_odm_mode dummy_odm_mode[DML2_MAX_PLANES]; |