From 4005d3215e79abcf578836f50280df19c94891cf Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 27 Aug 2018 15:33:17 +0900 Subject: [PATCH] sd-device: sd_device_enumerator_get_subsystem_next() requests the device list is uptodate --- src/libsystemd/sd-device/device-enumerator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-device/device-enumerator.c b/src/libsystemd/sd-device/device-enumerator.c index 9f7783e86cd..e1f60126b3a 100644 --- a/src/libsystemd/sd-device/device-enumerator.c +++ b/src/libsystemd/sd-device/device-enumerator.c @@ -935,7 +935,7 @@ _public_ sd_device *sd_device_enumerator_get_subsystem_first(sd_device_enumerato _public_ sd_device *sd_device_enumerator_get_subsystem_next(sd_device_enumerator *enumerator) { assert_return(enumerator, NULL); - if (enumerator->scan_uptodate || + if (!enumerator->scan_uptodate || enumerator->type != DEVICE_ENUMERATION_TYPE_SUBSYSTEMS) return NULL; -- 2.47.3