From b32cffd4f0a2b904a1e3c38e5141100970f89a65 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 29 Mar 2012 16:07:01 +0300 Subject: fix use-after-free when an interface event is pending while the interface is being freed --- interface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/interface.c b/interface.c index d749896..0aa5c5a 100644 --- a/interface.c +++ b/interface.c @@ -242,6 +242,7 @@ interface_cleanup(struct interface *iface, bool reload) list_for_each_entry_safe(dep, tmp, &iface->users, list) interface_remove_user(dep); + interface_dequeue_event(iface); interface_ip_flush(&iface->config_ip); interface_flush_state(iface); interface_clear_errors(iface); -- cgit v1.2.3