diff options
author | Alex Hung <alex.hung@amd.com> | 2024-04-16 16:40:00 -0600 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-05-02 16:18:16 -0400 |
commit | 2a5626eeb3b5eec7a36886f9556113dd93ec8ed6 (patch) | |
tree | db2e17c1d5b5851cbc45ad6729732381c0a92036 /ipc/util.c | |
parent | 687fe329f18ab0ab0496b20ed2cb003d4879d931 (diff) |
drm/amd/display: Check gpio_id before used as array index
[WHY & HOW]
GPIO_ID_UNKNOWN (-1) is not a valid value for array index and therefore
should be checked in advance.
This fixes 5 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/util.c')
0 files changed, 0 insertions, 0 deletions