free unused devices after cleaning up interfaces to get rid of recently-freed bridge...
authorFelix Fietkau <nbd@openwrt.org>
Fri, 19 Oct 2012 13:49:21 +0000 (15:49 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 19 Oct 2012 13:49:21 +0000 (15:49 +0200)
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_free_unused(NULL);
        vlist_flush(&interfaces);
+       device_free_unused(NULL);
        interface_start_pending();
 }