Page MenuHomeFreeBSD

D20617.id59129.diff
No OneTemporary

D20617.id59129.diff

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

Mime Type
text/plain
Expires
Wed, Jul 22, 3:21 PM (13 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35369287
Default Alt Text
D20617.id59129.diff (516 B)

Event Timeline