diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-06-04 23:40:43 +0200 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-06-15 09:30:49 -0400 |
commit | b80d8297ad835e7bddf8331468181e8dbc084421 (patch) | |
tree | c1df7e8856b5d50ee667ea2723a411c6fc2ae88f /src/udev | |
parent | 4fb073f4e8147c02d71a510ca8c14b62e80024a7 (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>
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/udevd.c | 2 |
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; |