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 819e5e4..9454dc1 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);