diff options
author | Alex Hung <[email protected]> | 2024-04-22 13:43:14 -0600 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-04-26 17:22:44 -0400 |
commit | 3ac31c9a707dd1c7c890b95333182f955e9dcb57 (patch) | |
tree | 7e44e7e0edb27fb7e481088ee928ecc51c4a71ec /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f1fd8a0a54e6d23a6d16ee29159f247862460fd1 (diff) |
drm/amd/display: Do not return negative stream id for array
[WHY]
resource_stream_to_stream_idx returns an array index and it return -1
when not found; however, -1 is not a valid array index number.
[HOW]
When this happens, call ASSERT(), and return a zero instead.
This fixes an OVERRUN and an NEGATIVE_RETURNS 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