summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-10-17 23:52:28 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-10-17 23:52:28 +0000
commit86f2d8e7cc62cc90c70993524e394f95a8d73a42 (patch)
tree881a75a643461c3c94ccf29a8a6f7d23f4e5eb67 /sys/dev/pci
parent593f0e0924d0b53979e0292f949cab0b40811ecb (diff)
drm/crtc: fix uninitialized variable use even harder
From Rob Clark be6c52b059a28ec7f78a135061f2cc16b352ef70 in linux-6.6.y/6.6.57 b6802b61a9d0e99dcfa6fff7c50db7c48a9623d3 in mainline linux
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/drm_crtc.c1
1 files changed, 1 insertions, 0 deletions
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);