2013-04-13 13:09:53 +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(+)
|
|
|
|
|
|
|
|
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
|
2013-04-19 22:31:17 +02:00
|
|
|
index 9be1931..d0c4c72 100644
|
2013-04-13 13:09:53 +02:00
|
|
|
--- a/src/udev/udevd.c
|
|
|
|
+++ b/src/udev/udevd.c
|
2013-04-19 22:31:17 +02:00
|
|
|
@@ -1414,6 +1414,8 @@ int main(int argc, char *argv[])
|
2012-10-26 14:34:44 +02:00
|
|
|
dev = udev_monitor_receive_device(monitor);
|
|
|
|
if (dev != NULL) {
|
2013-04-13 13:09:53 +02:00
|
|
|
udev_device_set_usec_initialized(dev, now(CLOCK_MONOTONIC));
|
2012-10-26 14:34:44 +02:00
|
|
|
+ if (rules == NULL)
|
|
|
|
+ rules = udev_rules_new(udev, resolve_names);
|
|
|
|
if (event_queue_insert(dev) < 0)
|
|
|
|
udev_device_unref(dev);
|
|
|
|
}
|