mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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 <aurabindo.pillai@amd.com> Acked-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Hersen Wu <hersenxs.wu@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3d49b60030
commit
ca46da75ca
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user