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)
|
|
|
|
---
|
2015-03-27 09:39:40 +01:00
|
|
|
src/udev/udevd.c | 2 ++
|
2013-04-23 11:39:56 +02:00
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
2015-09-27 14:32:31 +02:00
|
|
|
Index: systemd-221/src/udev/udevd.c
|
2015-03-27 09:39:40 +01:00
|
|
|
===================================================================
|
2015-09-27 14:32:31 +02:00
|
|
|
--- systemd-221.orig/src/udev/udevd.c
|
|
|
|
+++ systemd-221/src/udev/udevd.c
|
|
|
|
@@ -917,6 +917,8 @@ static int on_uevent(sd_event_source *s,
|
|
|
|
dev = udev_monitor_receive_device(manager->monitor);
|
|
|
|
if (dev) {
|
|
|
|
udev_device_ensure_usec_initialized(dev, NULL);
|
|
|
|
+ if (manager->rules == NULL)
|
|
|
|
+ manager->rules = udev_rules_new(manager->udev, arg_resolve_names);
|
|
|
|
r = event_queue_insert(manager, dev);
|
|
|
|
if (r < 0)
|
|
|
|
udev_device_unref(dev);
|