From: Yu Watanabe Date: Tue, 18 Dec 2018 06:11:24 +0000 (+0900) Subject: udevd: reject devices which do not have SEQNUM X-Git-Tag: v241-rc1~84^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25d4f5b0716b668a22203ceb6961473e57931db3;p=thirdparty%2Fsystemd.git udevd: reject devices which do not have SEQNUM --- diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 837e13e0dc9..a26691ab9e1 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -399,7 +399,7 @@ static int worker_process_device(Manager *manager, sd_device *dev) { r = sd_device_get_property_value(dev, "SEQNUM", &seqnum); if (r < 0) - log_device_debug_errno(dev, r, "Failed to get SEQNUM: %m"); + return log_device_debug_errno(dev, r, "Failed to get SEQNUM: %m"); log_device_debug(dev, "Processing device (SEQNUM=%s)", seqnum);