From b80d8297ad835e7bddf8331468181e8dbc084421 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Wed, 4 Jun 2014 23:40:43 +0200 Subject: 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 --- src/udev/udevd.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3-54-g00ecf