linux/drivers/gpu/drm/amd/display
Alex Hung 9419da1722 drm/amd/display: Skip accessing array for unknown eng_id
[WHY]
ENGINE_ID_UNKNOWN (-1) is not a valid eng_id and not a valid array
index.

[HOW]
Check whether eng_id is unknown to avoid access array with negative
array index.

This fixes 4 OVERRUN 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:16 -04:00
..
amdgpu_dm drm/amd/display: Disable panel replay by default for now 2024-05-02 15:37:58 -04:00
dc drm/amd/display: Skip accessing array for unknown eng_id 2024-05-02 16:18:16 -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: Refactor for Replay Link off frame count 2024-04-30 09:53:12 -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