mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Remove call to soisdisconnected() in uipc_detach(), since it will already
have been invoked by uipc_close() or uipc_abort(), and the socket is in a state of being torn down by the time we get to this point, so kqueue state frobbed by soisdisconnected() is not available, so frobbing it will result in a panic. Reported by: Munehiro Matsuda <haro at h4 dot dion dot ne dot jp>
This commit is contained in:
parent
e29c1f81e5
commit
0075d85869
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160720
@ -443,7 +443,6 @@ uipc_detach(struct socket *so)
|
||||
struct unpcb *ref = LIST_FIRST(&unp->unp_refs);
|
||||
unp_drop(ref, ECONNRESET);
|
||||
}
|
||||
soisdisconnected(unp->unp_socket);
|
||||
unp->unp_socket->so_pcb = NULL;
|
||||
local_unp_rights = unp_rights;
|
||||
UNP_UNLOCK();
|
||||
|
Loading…
Reference in New Issue
Block a user