Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151766305
D14990.id41187.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
507 B
Referenced Files
None
Subscribers
None
D14990.id41187.diff
View Options
Index: sys/netinet/in_pcb.c
===================================================================
--- sys/netinet/in_pcb.c
+++ sys/netinet/in_pcb.c
@@ -1288,6 +1288,13 @@
KASSERT(inp->inp_socket == NULL, ("%s: inp_socket != NULL", __func__));
+ KASSERT((inp->inp_flags2 & INP_FREED) == 0,
+ ("%s: called twice for pcb %p", __func__, inp));
+ if (inp->inp_flags2 & INP_FREED) {
+ INP_WUNLOCK(inp);
+ return;
+ }
+
#ifdef INVARIANTS
if (pcbinfo == &V_tcbinfo) {
INP_INFO_LOCK_ASSERT(pcbinfo);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 11, 12:50 PM (17 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31252604
Default Alt Text
D14990.id41187.diff (507 B)
Attached To
Mode
D14990: Check that in_pcbfree() is only called once for each PCB.
Attached
Detach File
Event Timeline
Log In to Comment