linux/drivers/gpu/drm/amd/display
Alex Hung 8e2734bf44 drm/amd/display: Ensure index calculation will not overflow
[WHY & HOW]
Make sure vmid0p72_idx, vnom0p8_idx and vmax0p9_idx calculation will
never overflow and exceess array size.

This fixes 3 OVERRUN and 1 INTEGER_OVERFLOW issues reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@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-05-02 16:18:18 -04:00
..
amdgpu_dm drm/amd/display: Spinlock before reading event 2024-05-02 16:18:18 -04:00
dc drm/amd/display: Ensure index calculation will not overflow 2024-05-02 16:18:18 -04:00
dmub drm/amd/display: Notify idle link detection through shared state 2024-04-30 09:57:17 -04:00
include drm/amd/display: Add misc DC changes for DCN401 2024-04-26 17:23:34 -04:00
modules drm/amd/display: Add array index check for hdcp ddc access 2024-05-02 16:18:17 -04:00
Kconfig drm/amd/display: Fix invalid Copyright notice 2024-05-02 16:18:16 -04:00
Makefile drm/amd/display: Refactor DCCG into component folder 2024-05-02 16:18:16 -04:00