diff options
author | weizhixiang <1138871845@qq.com> | 2020-09-15 16:03:44 +0800 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-09-16 23:32:51 +0000 |
commit | 7dee61662184f5828ddfcd36f4189d9cb7a94bc0 (patch) | |
tree | 2f4aa64c63713a47dd006f2015474e37434a54fe /src/udev-seat.c | |
parent | 7f2989e2aaaf30b5a8f2c9a2e6e1d19c11068dad (diff) | |
download | libinput-7dee61662184f5828ddfcd36f4189d9cb7a94bc0.tar.gz |
check return value for libudev/udev_monitor_filter_add_match_subsystem_devtype
Signed-off-by: weizhixiang <1138871845@qq.com>
Diffstat (limited to 'src/udev-seat.c')
-rw-r--r-- | src/udev-seat.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/udev-seat.c b/src/udev-seat.c index 28b21b6e..20a3f027 100644 --- 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"); |