diff options
author | Alex Hung <[email protected]> | 2024-04-22 13:52:27 -0600 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-04-26 17:22:44 -0400 |
commit | 1357b2165d9ad94faa4c4a20d5e2ce29c2ff29c3 (patch) | |
tree | ff642d0028ca4ea134b9d62cc10a46f64782c3dd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5396a70e8cf462ec5ccf2dc8de103c79de9489e6 (diff) |
drm/amd/display: Skip finding free audio for unknown engine_id
[WHY]
ENGINE_ID_UNKNOWN = -1 and can not be used as an array index. Plus, it
also means it is uninitialized and does not need free audio.
[HOW]
Skip and return NULL.
This fixes 2 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