Page MenuHomeFreeBSD

D59387.diff
No OneTemporary

D59387.diff

diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1102,9 +1102,18 @@
* the work top-down for us.
*/
if (shutdown) {
+ struct epoch_tracker et;
+ struct ifaddr *ifa;
+
/* Give interface users the chance to clean up. */
EVENTHANDLER_INVOKE(ifnet_departure_event, ifp);
+ NET_EPOCH_ENTER(et);
+ CK_STAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
+ ifa_free(ifa);
+ }
+ NET_EPOCH_EXIT(et);
+
/*
* In case of a vmove we are done here without error.
* If we would signal an error it would lead to the same

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 27, 7:21 AM (8 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38332195
Default Alt Text
D59387.diff (572 B)

Event Timeline