diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-05 19:02:29 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-05 19:02:29 +0200 |
commit | 1d2107528d9ffa2c7382f3e4290e86c166bd3324 (patch) | |
tree | b12d051edc2abaca5252cceffac55a953fde3257 | |
parent | 0afea380d7e7dec4523dd8f071692a80944ad85d (diff) |
clear interface errors on interface cleanup
-rw-r--r-- | interface.c | 1 |
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); |