Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106105205
D20617.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
516 B
Referenced Files
None
Subscribers
None
D20617.diff
View Options
Index: head/sys/netinet/tcp_subr.c
===================================================================
--- head/sys/netinet/tcp_subr.c
+++ head/sys/netinet/tcp_subr.c
@@ -798,8 +798,12 @@
}
}
+ if (blk->tfb_flags & TCP_FUNC_BEING_REMOVED) {
+ *num_names = 0;
+ return (EINVAL);
+ }
+
refcount_init(&blk->tfb_refcnt, 0);
- blk->tfb_flags = 0;
blk->tfb_id = atomic_fetchadd_int(&next_tcp_stack_id, 1);
for (i = 0; i < *num_names; i++) {
n = malloc(sizeof(struct tcp_function), M_TCPFUNCTIONS, wait);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 11:54 AM (9 m, 9 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15604450
Default Alt Text
D20617.diff (516 B)
Attached To
Mode
D20617: Reject attempts to register a TCP stack being unloaded.
Attached
Detach File
Event Timeline
Log In to Comment