clear interface errors on interface cleanup
authorFelix Fietkau <nbd@openwrt.org>
Wed, 5 Oct 2011 17:02:29 +0000 (19:02 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 5 Oct 2011 17:02:29 +0000 (19:02 +0200)
interface.c

index 819e5e457aa9114e1201f01fe8efe06040032b8c..9454dc1b1de9a525618b0d81bfc66d3eeb805b5f 100644 (file)
@@ -184,6 +184,7 @@ interface_claim_device(struct interface *iface)
 static void
 interface_cleanup(struct interface *iface)
 {
+       interface_clear_errors(iface);
        if (iface->main_dev.dev)
                device_remove_user(&iface->main_dev);
        interface_set_proto_state(iface, NULL);