diff options
author | jennifer <jennifer@FreeBSD.org> | 2002-08-12 03:22:46 +0000 |
---|---|---|
committer | jennifer <jennifer@FreeBSD.org> | 2002-08-12 03:22:46 +0000 |
commit | 5709e80b7dcb5114b963099a799a92c339db555b (patch) | |
tree | f85834f60d33b554cc83aebd2cb2e61111bd2337 /sys/netinet/tcp_output.c | |
parent | 2f9e2502bd8fdce2b8b1515897376a342ba6b028 (diff) | |
download | FreeBSD-src-5709e80b7dcb5114b963099a799a92c339db555b.zip FreeBSD-src-5709e80b7dcb5114b963099a799a92c339db555b.tar.gz |
Assert that the inpcb lock is held when calling tcp_output().
Approved by: hsu
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 9fc5c31..dcff290 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -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. |