diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-07-12 03:58:09 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-07-12 03:58:09 +0000 |
commit | 9d1af8464429543e3ef71f90853ffc23c7b07eb5 (patch) | |
tree | 340650e62ea4c0c24d086bd064f4c44902272e5b /sys/dev | |
parent | 8d1f5ae7e22a0a781a75242b0466e7201204cb52 (diff) |
drm/amd/display: Skip finding free audio for unknown engine_id
From Alex Hung
95ad20ee3c4efbb91f9a4ab08e070aa3697f5879 in linux-6.6.y/6.6.39
1357b2165d9ad94faa4c4a20d5e2ce29c2ff29c3 in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/amd/display/dc/core/dc_resource.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c b/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c index efdd9b134af..d0df3605231 100644 --- a/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c +++ b/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c @@ -2385,6 +2385,9 @@ static struct audio *find_first_free_audio( { int i, available_audio_count; + if (id == ENGINE_ID_UNKNOWN) + return NULL; + available_audio_count = pool->audio_count; for (i = 0; i < available_audio_count; i++) { |