drm/crtc: fix uninitialized variable use even harder
authorjsg <jsg@openbsd.org>
Thu, 17 Oct 2024 23:52:27 +0000 (23:52 +0000)
committerjsg <jsg@openbsd.org>
Thu, 17 Oct 2024 23:52:27 +0000 (23:52 +0000)
From Rob Clark
be6c52b059a28ec7f78a135061f2cc16b352ef70 in linux-6.6.y/6.6.57
b6802b61a9d0e99dcfa6fff7c50db7c48a9623d3 in mainline linux

sys/dev/pci/drm/drm_crtc.c

index ee349e6..6b9b444 100644 (file)
@@ -904,6 +904,7 @@ out:
        connector_set = NULL;
        fb = NULL;
        mode = NULL;
+       num_connectors = 0;
 
        DRM_MODESET_LOCK_ALL_END(dev, ctx, ret);