From: jsg Date: Tue, 6 Feb 2024 03:17:19 +0000 (+0000) Subject: drm/framebuffer: Fix use of uninitialized variable X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c2e9d438124f4aaf32ad3762faa988785c5de139;p=openbsd drm/framebuffer: Fix use of uninitialized variable From Tomi Valkeinen 9b3fbff86a623a0ec053d5a4ab432956cb025c1f in linux-6.6.y/6.6.16 f9af8f0c1dc567a5a6a6318ff324c45d80d4a60f in mainline linux --- diff --git a/sys/dev/pci/drm/drm_framebuffer.c b/sys/dev/pci/drm/drm_framebuffer.c index 8e50e25bad0..fa63d809007 100644 --- a/sys/dev/pci/drm/drm_framebuffer.c +++ b/sys/dev/pci/drm/drm_framebuffer.c @@ -570,7 +570,7 @@ int drm_mode_getfb2_ioctl(struct drm_device *dev, struct drm_mode_fb_cmd2 *r = data; struct drm_framebuffer *fb; unsigned int i; - int ret; + int ret = 0; if (!drm_core_check_feature(dev, DRIVER_MODESET)) return -EINVAL;