From: Felix Fietkau Date: Wed, 5 Oct 2011 17:02:29 +0000 (+0200) Subject: clear interface errors on interface cleanup X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1d2107528d9ffa2c7382f3e4290e86c166bd3324;p=oweals%2Fnetifd.git clear interface errors on interface cleanup --- 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);