summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-10-11 02:11:24 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-10-11 02:11:24 +0000
commit147fa89b3af382b3b69e299ed91114a2e454ffe2 (patch)
tree2197b875f80934ed9b288bfcf22ddb934ed55a3c /sys/dev
parente469bd001bcc62166308b660ce0d4a58996ace36 (diff)
drm/amd/display: Handle null 'stream_status' in 'planes_changed_for_existing_stream'
From Srinivasan Shanmugam 4778982c73d6c9f3fdbdbc6b6c8aa18df98251af in linux-6.6.y/6.6.55 8141f21b941710ecebe49220b69822cab3abd23d in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/amd/display/dc/core/dc_resource.c4
1 files changed, 3 insertions, 1 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 a2f302d043c..32df2279f61 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
@@ -2877,8 +2877,10 @@ static bool planes_changed_for_existing_stream(struct dc_state *context,
}
}
- if (!stream_status)
+ if (!stream_status) {
ASSERT(0);
+ return false;
+ }
for (i = 0; i < set_count; i++)
if (set[i].stream == stream)