summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-06-04 23:40:43 +0200
committerAnthony G. Basile <blueness@gentoo.org>2014-06-15 09:30:49 -0400
commitb80d8297ad835e7bddf8331468181e8dbc084421 (patch)
treec1df7e8856b5d50ee667ea2723a411c6fc2ae88f
parent4fb073f4e8147c02d71a510ca8c14b62e80024a7 (diff)
udev: check the return value from udev_enumerate_scan_devices
The return value from udev_enumerate_scan_devices was stored but never used. I assume this was meant to be checked. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--src/udev/udevd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 499dc6729d..7a0dca17cb 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -780,6 +780,8 @@ static int synthesize_change(struct udev_device *dev) {
return r;
r = udev_enumerate_scan_devices(e);
+ if (r < 0)
+ return r;
udev_list_entry_foreach(item, udev_enumerate_get_list_entry(e)) {
_cleanup_udev_device_unref_ struct udev_device *d = NULL;