Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109925931
D25583.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
894 B
Referenced Files
None
Subscribers
None
D25583.diff
View Options
Index: head/sys/netinet/tcp_subr.c
===================================================================
--- head/sys/netinet/tcp_subr.c
+++ head/sys/netinet/tcp_subr.c
@@ -1702,6 +1702,12 @@
KASSERT(!STAILQ_EMPTY(&cc_list), ("cc_list is empty!"));
CC_ALGO(tp) = CC_DEFAULT();
CC_LIST_RUNLOCK();
+ /*
+ * The tcpcb will hold a reference on its inpcb until tcp_discardcb()
+ * is called.
+ */
+ in_pcbref(inp); /* Reference for tcpcb */
+ tp->t_inpcb = inp;
if (CC_ALGO(tp)->cb_init != NULL)
if (CC_ALGO(tp)->cb_init(tp->ccv) > 0) {
@@ -1746,12 +1752,6 @@
if (V_tcp_do_sack)
tp->t_flags |= TF_SACK_PERMIT;
TAILQ_INIT(&tp->snd_holes);
- /*
- * The tcpcb will hold a reference on its inpcb until tcp_discardcb()
- * is called.
- */
- in_pcbref(inp); /* Reference for tcpcb */
- tp->t_inpcb = inp;
/*
* Init srtt to TCPTV_SRTTBASE (0), so we can tell that we have no
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 12, 7:59 AM (18 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16608128
Default Alt Text
D25583.diff (894 B)
Attached To
Mode
D25583: Fix KASSERT during tcp_newtcpcb when low on memory
Attached
Detach File
Event Timeline
Log In to Comment