Always release the inp lock before returning from tcp_detach.
MFC after: 5 days
This commit is contained in:
parent
81ec6b6b47
commit
db3cee5170
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229714
@ -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