drm/amd/display: Handle null 'stream_status' in 'planes_changed_for_existing_stream'
authorjsg <jsg@openbsd.org>
Fri, 11 Oct 2024 02:11:23 +0000 (02:11 +0000)
committerjsg <jsg@openbsd.org>
Fri, 11 Oct 2024 02:11:23 +0000 (02:11 +0000)
From Srinivasan Shanmugam
4778982c73d6c9f3fdbdbc6b6c8aa18df98251af in linux-6.6.y/6.6.55
8141f21b941710ecebe49220b69822cab3abd23d in mainline linux

sys/dev/pci/drm/amd/display/dc/core/dc_resource.c

index a2f302d..32df227 100644 (file)
@@ -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)