diff options
author | Jennifer Yang <jennifer@FreeBSD.org> | 2002-08-12 03:22:46 +0000 |
---|---|---|
committer | Jennifer Yang <jennifer@FreeBSD.org> | 2002-08-12 03:22:46 +0000 |
commit | 3d6ade3a036cbe4f65cf7325a4dbb8f842860505 (patch) | |
tree | f85834f60d33b554cc83aebd2cb2e61111bd2337 /sys/netinet/tcp_output.c | |
parent | 7ba28492c591e95840a0fe2bbe14a0bd9194813f (diff) | |
download | src-3d6ade3a036cbe4f65cf7325a4dbb8f842860505.tar.gz src-3d6ade3a036cbe4f65cf7325a4dbb8f842860505.zip |
Assert that the inpcb lock is held when calling tcp_output().
Approved by: hsu
Notes
Notes:
svn path=/head/; revision=101713
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 9fc5c318cf7e..dcff29097ba1 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. |