diff options
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/udev-event.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index d4971cd18e..8db287b141 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -894,12 +894,11 @@ void udev_event_execute_rules(struct udev_event *event, udev_device_ensure_usec_initialized(event->dev, event->dev_db); /* (re)write database file */ - udev_device_update_db(dev); udev_device_tag_index(dev, event->dev_db, true); + udev_device_update_db(dev); udev_device_set_is_initialized(dev); - udev_device_unref(event->dev_db); - event->dev_db = NULL; + event->dev_db = udev_device_unref(event->dev_db); } } |