mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 22:33:39 +00:00
Assert that the inpcb lock is held when calling tcp_output().
Approved by: hsu
This commit is contained in:
parent
7ba28492c5
commit
3d6ade3a03
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101713
|
@ -128,6 +128,8 @@ tcp_output(struct tcpcb *tp)
|
|||
isipv6 = (tp->t_inpcb->inp_vflag & INP_IPV6) != 0;
|
||||
#endif
|
||||
|
||||
mtx_assert(&tp->t_inpcb->inp_mtx, MA_OWNED);
|
||||
|
||||
/*
|
||||
* Determine length of data that should be transmitted,
|
||||
* and flags that will be used.
|
||||
|
|
Loading…
Reference in a new issue