Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145560257
D22215.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
587 B
Referenced Files
None
Subscribers
None
D22215.diff
View Options
Index: sys/net/if.c
===================================================================
--- sys/net/if.c
+++ sys/net/if.c
@@ -1582,15 +1582,17 @@
CK_STAILQ_REMOVE(&V_ifg_head, ifgl->ifgl_group, ifg_group, ifg_next);
ifglfree = 1;
}
-
IFNET_WUNLOCK();
+
epoch_wait_preempt(net_epoch_preempt);
- free(ifgm, M_TEMP);
if (ifglfree) {
EVENTHANDLER_INVOKE(group_detach_event,
ifgl->ifgl_group);
free(ifgl->ifgl_group, M_TEMP);
}
+ free(ifgm, M_TEMP);
+ free(ifgl, M_TEMP);
+
EVENTHANDLER_INVOKE(group_change_event, groupname);
IFNET_WLOCK();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 22, 12:03 PM (5 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28937063
Default Alt Text
D22215.diff (587 B)
Attached To
Mode
D22215: fix leak of the ifg_list structure in if_delgroups.
Attached
Detach File
Event Timeline
Log In to Comment