diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-06-04 23:40:43 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-06-10 19:06:50 +0200 |
commit | 47a3fa0f7679521b85f7aeba9e245c52cc7bb2cb (patch) | |
tree | b8e3ad41a3267e1dd5278468030a71d8670acc21 /src | |
parent | d31e10967752dcc4ee3a8b16228f434c288b5a1b (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.
Diffstat (limited to 'src')
-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 160360e63b..a45d3240c6 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; |