2013-04-23 11:39:56 +02:00
|
|
|
From: Robert Milasan <rmilasan@suse.com>
|
|
|
|
Date: Mon, 6 Aug 2012 13:35:34 +0000
|
|
|
|
Subject: udev netlink null rules
|
|
|
|
|
|
|
|
udevd race for netlink events (bnc#774646)
|
|
|
|
---
|
|
|
|
src/udev/udevd.c | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
2013-08-02 07:26:48 +02:00
|
|
|
--- systemd-206.orig/src/udev/udevd.c
|
|
|
|
+++ systemd-206/src/udev/udevd.c
|
|
|
|
@@ -1337,6 +1337,8 @@ int main(int argc, char *argv[])
|
2012-11-02 17:30:32 +01:00
|
|
|
dev = udev_monitor_receive_device(monitor);
|
|
|
|
if (dev != NULL) {
|
2013-04-23 11:39:56 +02:00
|
|
|
udev_device_set_usec_initialized(dev, now(CLOCK_MONOTONIC));
|
2012-11-02 17:30:32 +01:00
|
|
|
+ if (rules == NULL)
|
|
|
|
+ rules = udev_rules_new(udev, resolve_names);
|
|
|
|
if (event_queue_insert(dev) < 0)
|
|
|
|
udev_device_unref(dev);
|
|
|
|
}
|