linux/drivers/gpu/drm/amd/display
Alex Hung d281b77426 drm/amd/display: Fix incorrect size calculation for loop in dcn401
[WHY]
fe_clk_en and be_clk_sel have size of 4 but sizeof(fe_clk_en) has
byte size 16 which is lager than the array size.

[HOW]
Use ARRAY_SIZE for calculating size.

This fixes 2 OVERRUN issues reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-06-14 16:17:17 -04:00
..
amdgpu_dm drm/amd/display: Move PRIMARY plane zpos higher 2024-06-14 16:17:16 -04:00
dc drm/amd/display: Fix incorrect size calculation for loop in dcn401 2024-06-14 16:17:17 -04:00
dmub drm/amd/display: Remove register from DCN35 DMCUB diagnostic collection 2024-06-14 16:17:16 -04:00
include drm/amd/display: fix graphics_object_id size 2024-05-29 14:48:31 -04:00
modules drm/amd/display: Introduce deferred Replay coasting vtotal update 2024-06-14 15:34:02 -04:00
Kconfig drm/amd/display: Fix invalid Copyright notice 2024-05-02 16:18:16 -04:00
Makefile drm/amd/display: Refactor HUBP into component folder. 2024-05-08 15:17:03 -04:00