From 6f401bbe799d6a45a2c709444b59e8c0af027597 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 17 Oct 2024 23:52:27 +0000 Subject: [PATCH] drm/crtc: fix uninitialized variable use even harder From Rob Clark be6c52b059a28ec7f78a135061f2cc16b352ef70 in linux-6.6.y/6.6.57 b6802b61a9d0e99dcfa6fff7c50db7c48a9623d3 in mainline linux --- sys/dev/pci/drm/drm_crtc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/pci/drm/drm_crtc.c b/sys/dev/pci/drm/drm_crtc.c index ee349e64a50..6b9b4441de7 100644 --- a/sys/dev/pci/drm/drm_crtc.c +++ b/sys/dev/pci/drm/drm_crtc.c @@ -904,6 +904,7 @@ out: connector_set = NULL; fb = NULL; mode = NULL; + num_connectors = 0; DRM_MODESET_LOCK_ALL_END(dev, ctx, ret); -- 2.20.1