free unused devices after cleaning up interfaces to get rid of recently-freed bridge...
[project/netifd.git] / config.c
index c51e379..98c46b3 100644 (file)
--- a/config.c
+++ b/config.c
@@ -458,7 +458,7 @@ config_init_all(void)
 
        device_reset_old();
        device_init_pending();
 
        device_reset_old();
        device_init_pending();
-       device_free_unused(NULL);
        vlist_flush(&interfaces);
        vlist_flush(&interfaces);
+       device_free_unused(NULL);
        interface_start_pending();
 }
        interface_start_pending();
 }