diff options
author | Alex Hung <[email protected]> | 2024-04-18 13:27:43 -0600 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-04-26 17:22:43 -0400 |
commit | 59d99deb330af206a4541db0c4da8f73880fba03 (patch) | |
tree | ee6d0a004b51e52275f98c80334aa24bb9dad89b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | acce6479e30f73ab0872e93a75aed1fb791d04ec (diff) |
drm/amd/display: Check index msg_id before read or write
[WHAT]
msg_id is used as an array index and it cannot be a negative value, and
therefore cannot be equal to MOD_HDCP_MESSAGE_ID_INVALID (-1).
[HOW]
Check whether msg_id is valid before reading and setting.
This fixes 4 OVERRUN issues reported by Coverity.
Reviewed-by: Rodrigo Siqueira <[email protected]>
Acked-by: Wayne Lin <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions