]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
drm: Check for NULL terminal in watch_input_device
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 27 Mar 2025 09:19:44 +0000 (17:19 +0800)
committerHans de Goede <jwrdegoede@fedoraproject.org>
Thu, 19 Jun 2025 20:42:32 +0000 (20:42 +0000)
It's allowed to be NULL and the rest of the source file checks for NULL.
Seems the check was just forgotten here.

Closes: https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/288
src/plugins/renderers/drm/plugin.c

index 0249dbfae899e78619a48f054842d5979a372951..88c5770bed0ba51b535f648b03e87b219c5924c5 100644 (file)
@@ -1897,7 +1897,8 @@ watch_input_device (ply_renderer_backend_t *backend,
                                           (ply_input_device_leds_changed_handler_t) on_input_leds_changed,
                                           &backend->input_source);
 
-        ply_terminal_set_disabled_input (backend->terminal);
+        if (backend->terminal != NULL)
+                ply_terminal_set_disabled_input (backend->terminal);
 }
 
 static void