diff options
-rw-r--r-- | config.c | 2 | ||||
-rw-r--r-- | device.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -341,10 +341,10 @@ config_init_interfaces(const char *name) if (!strcmp(s->type, "interface")) config_parse_interface(s); } - device_free_unused(NULL); config_init = false; device_reset_old(); device_init_pending(); + device_free_unused(NULL); interface_start_pending(); } @@ -292,7 +292,7 @@ void device_add_user(struct device_user *dep, struct device *dev) static void __device_free_unused(struct device *dev) { - if (!list_empty(&dev->users) || dev->current_config) + if (!list_empty(&dev->users) || dev->current_config || config_init) return; device_free(dev); |