From: jsg Date: Thu, 17 Oct 2024 23:52:27 +0000 (+0000) Subject: drm/crtc: fix uninitialized variable use even harder X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6f401bbe799d6a45a2c709444b59e8c0af027597;p=openbsd drm/crtc: fix uninitialized variable use even harder From Rob Clark be6c52b059a28ec7f78a135061f2cc16b352ef70 in linux-6.6.y/6.6.57 b6802b61a9d0e99dcfa6fff7c50db7c48a9623d3 in mainline linux --- 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);