interface: cancel the remove timer on cleanup
authorFelix Fietkau <nbd@openwrt.org>
Sun, 31 Aug 2014 12:57:34 +0000 (14:57 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 31 Aug 2014 12:57:34 +0000 (14:57 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
interface.c

index 8627d97..df04ce3 100644 (file)
@@ -527,6 +527,7 @@ interface_cleanup(struct interface *iface)
 {
        struct interface_user *dep, *tmp;
 
+       uloop_timeout_cancel(&iface->remove_timer);
        device_remove_user(&iface->ext_dev);
 
        if (iface->parent_iface.iface)