summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-05 19:02:29 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-05 19:02:29 +0200
commit1d2107528d9ffa2c7382f3e4290e86c166bd3324 (patch)
treeb12d051edc2abaca5252cceffac55a953fde3257
parent0afea380d7e7dec4523dd8f071692a80944ad85d (diff)
clear interface errors on interface cleanup
-rw-r--r--interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/interface.c b/interface.c
index 819e5e4..9454dc1 100644
--- a/interface.c
+++ b/interface.c
@@ -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);