From 5709e80b7dcb5114b963099a799a92c339db555b Mon Sep 17 00:00:00 2001 From: jennifer Date: Mon, 12 Aug 2002 03:22:46 +0000 Subject: Assert that the inpcb lock is held when calling tcp_output(). Approved by: hsu --- sys/netinet/tcp_output.c | 2 ++ 1 file changed, 2 insertions(+) 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. -- cgit v1.1