From 58f053d4374f6c1f7001ccdacebf8dd300917f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 16 Jul 2021 17:06:05 +0200 Subject: [PATCH] drm-buffer/dumb: Return TRUE when init succeeded Returning FALSE means it failed, but we returned FALSE even when it succeeded, meaning it would never succeed. Fixes: 10c4bc6e3f0230e587190bcd73f211dd5056b9ca Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1880 Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1888 Part-of: --- src/backends/native/meta-drm-buffer-dumb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/native/meta-drm-buffer-dumb.c b/src/backends/native/meta-drm-buffer-dumb.c index 2df48aa5d..d2fcad2f0 100644 --- a/src/backends/native/meta-drm-buffer-dumb.c +++ b/src/backends/native/meta-drm-buffer-dumb.c @@ -197,7 +197,7 @@ init_dumb_buffer (MetaDrmBufferDumb *buffer_dumb, buffer_dumb->stride_bytes = create_arg.pitch; buffer_dumb->drm_format = format; - return FALSE; + return TRUE; err_mmap: err_map_dumb: