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 c51e37921859ee4a27f7698fe0b982defc47e751..98c46b34196b11614d6f33f540e26740e67864fb 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();
 }