diff options
author | Alex Hung <alex.hung@amd.com> | 2024-04-23 15:37:03 -0600 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-05-02 16:18:16 -0400 |
commit | 9419da172221eb1dd672bcbaa2e27bb5f8ca807a (patch) | |
tree | 5afd2bd637f1e4c98458494e28f8dcb925606970 /ipc | |
parent | 0a8d25285feb68608acdf778983ee5f4d72707e8 (diff) |
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>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions