From: Yu Watanabe Date: Fri, 29 Apr 2022 13:27:53 +0000 (+0900) Subject: core/device: device_found_node() does not accept DEVICE_FOUND_UDEV X-Git-Tag: v251-rc2~44^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03a94b73c4779b6b5dc78f4e8b57d6b2ea0e7769;p=thirdparty%2Fsystemd.git core/device: device_found_node() does not accept DEVICE_FOUND_UDEV --- diff --git a/src/core/device.c b/src/core/device.c index 5d08697accf..3e0fd76f5e6 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -971,6 +971,7 @@ static int validate_node(const char *node, sd_device **ret) { void device_found_node(Manager *m, const char *node, DeviceFound found, DeviceFound mask) { assert(m); assert(node); + assert(!FLAGS_SET(mask, DEVICE_FOUND_UDEV)); if (!udev_available()) return;