Always release the inp lock before returning from tcp_detach.
MFC after: 5 days
This commit is contained in:
parent
6bdfc28231
commit
8b68a40419
@ -204,8 +204,10 @@ tcp_detach(struct socket *so, struct inpcb *inp)
|
||||
tcp_discardcb(tp);
|
||||
in_pcbdetach(inp);
|
||||
in_pcbfree(inp);
|
||||
} else
|
||||
} else {
|
||||
in_pcbdetach(inp);
|
||||
INP_WUNLOCK(inp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user