summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjennifer <jennifer@FreeBSD.org>2002-08-12 03:22:46 +0000
committerjennifer <jennifer@FreeBSD.org>2002-08-12 03:22:46 +0000
commit5709e80b7dcb5114b963099a799a92c339db555b (patch)
treef85834f60d33b554cc83aebd2cb2e61111bd2337
parent2f9e2502bd8fdce2b8b1515897376a342ba6b028 (diff)
downloadFreeBSD-src-5709e80b7dcb5114b963099a799a92c339db555b.zip
FreeBSD-src-5709e80b7dcb5114b963099a799a92c339db555b.tar.gz
Assert that the inpcb lock is held when calling tcp_output().
Approved by: hsu
-rw-r--r--sys/netinet/tcp_output.c2
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.
OpenPOWER on IntegriCloud