projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f2989e
)
check return value for libudev/udev_monitor_filter_add_match_subsystem_devtype
author
weizhixiang
<1138871845@qq.com>
Tue, 15 Sep 2020 08:03:44 +0000
(16:03 +0800)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 16 Sep 2020 23:32:51 +0000
(23:32 +0000)
Signed-off-by: weizhixiang <1138871845@qq.com>
src/udev-seat.c
patch
|
blob
|
history
diff --git
a/src/udev-seat.c
b/src/udev-seat.c
index 28b21b6ed509560476781b70c5c5b598f6bb7426..20a3f0274f8f08abb8a9d4a55272e5e8002b145a 100644
(file)
--- a/
src/udev-seat.c
+++ b/
src/udev-seat.c
@@
-289,8
+289,11
@@
udev_input_enable(struct libinput *libinput)
return -1;
}
- udev_monitor_filter_add_match_subsystem_devtype(input->udev_monitor,
- "input", NULL);
+ if (udev_monitor_filter_add_match_subsystem_devtype(
+ input->udev_monitor, "input", NULL)) {
+ log_info(libinput, "udev: failed to set up filter\n");
+ return -1;
+ }
if (udev_monitor_enable_receiving(input->udev_monitor)) {
log_info(libinput, "udev: failed to bind the udev monitor\n");