From 33857cba4dcd1f7e3baf10469205c4c60c6963b7 Mon Sep 17 00:00:00 2001 From: stefan11111 Date: Tue, 30 Dec 2025 21:25:06 +0200 Subject: [PATCH] modesetting: clear bo in `drmmode_create_front_bo` Fixes: https://github.com/X11Libre/xserver/issues/1740 Signed-off-by: stefan11111 --- hw/xfree86/drivers/video/modesetting/drmmode_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/xfree86/drivers/video/modesetting/drmmode_display.c b/hw/xfree86/drivers/video/modesetting/drmmode_display.c index 962c10509..d0e330368 100644 --- a/hw/xfree86/drivers/video/modesetting/drmmode_display.c +++ b/hw/xfree86/drivers/video/modesetting/drmmode_display.c @@ -1175,6 +1175,8 @@ static Bool drmmode_create_front_bo(drmmode_ptr drmmode, drmmode_bo *bo, unsigned width, unsigned height, unsigned bpp) { + memset(bo, 0, sizeof(*bo)); + bo->width = width; bo->height = height;