[PATCH libinput] path: if the udev device is never initialized, bail
Peter Hutterer
peter.hutterer at who-t.net
Fri Jan 5 04:45:38 UTC 2018
2000ms should be enough, if that fails let's bail completely.
Related to: https://bugs.freedesktop.org/show_bug.cgi?id=104278
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/path-seat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/path-seat.c b/src/path-seat.c
index c162dc64..4322b920 100644
--- a/src/path-seat.c
+++ b/src/path-seat.c
@@ -316,7 +316,7 @@ udev_device_from_devnode(struct libinput *libinput,
log_bug_libinput(libinput,
"udev device never initialized (%s)\n",
devnode);
- break;
+ return NULL;
}
}
--
2.13.6
More information about the wayland-devel
mailing list