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 8627d97d652bfd6f6fe3d92df1553059000e950a..df04ce317ab946b0953884a101fccde3ac1f0fc9 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)