[systemd-commits] src/udev
Kay Sievers
kay at kemper.freedesktop.org
Tue Jun 10 10:07:55 PDT 2014
src/udev/udevd.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 47a3fa0f7679521b85f7aeba9e245c52cc7bb2cb
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Wed Jun 4 23:40:43 2014 +0200
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.
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 160360e..a45d324 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;
More information about the systemd-commits
mailing list