Commit 1357b21
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 <rodrigo.siqueira@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 5396a70 commit 1357b21
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3187 | 3187 | | |
3188 | 3188 | | |
3189 | 3189 | | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
3190 | 3193 | | |
3191 | 3194 | | |
3192 | 3195 | | |
| |||
0 commit comments