Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F95756061
D32968.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D32968.diff
View Options
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -66,7 +66,6 @@
#include <sys/protosw.h>
#include <sys/proc.h>
#include <sys/jail.h>
-#include <sys/syslog.h>
#include <sys/stats.h>
#ifdef DDB
@@ -262,26 +261,10 @@
* In all three cases the tcptw should not be freed here.
*/
if (inp->inp_flags & INP_DROPPED) {
+ KASSERT(tp == NULL, ("tcp_detach: INP_TIMEWAIT && "
+ "INP_DROPPED && tp != NULL"));
in_pcbdetach(inp);
- if (__predict_true(tp == NULL)) {
- in_pcbfree(inp);
- } else {
- /*
- * This case should not happen as in TIMEWAIT
- * state the inp should not be destroyed before
- * its tcptw. If INVARIANTS is defined, panic.
- */
-#ifdef INVARIANTS
- panic("%s: Panic before an inp double-free: "
- "INP_TIMEWAIT && INP_DROPPED && tp != NULL"
- , __func__);
-#else
- log(LOG_ERR, "%s: Avoid an inp double-free: "
- "INP_TIMEWAIT && INP_DROPPED && tp != NULL"
- , __func__);
-#endif
- INP_WUNLOCK(inp);
- }
+ in_pcbfree(inp);
} else {
in_pcbdetach(inp);
INP_WUNLOCK(inp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 23, 12:19 PM (21 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12539941
Default Alt Text
D32968.diff (1 KB)
Attached To
Mode
D32968: tcp_usr_detach: revert debugging piece from f5cf1e5f5a500.
Attached
Detach File
Event Timeline
Log In to Comment