aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-06-01 11:44:43 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-06-01 11:44:43 +0000
commit7609aad7d9f6030a50c7061e79c30fb1edb52ca8 (patch)
tree653cd808a841fd66aab069241a204fcec469f825 /sys/netinet/tcp_usrreq.c
parentfe6bfc37306d08e7dc05de698e6884c5f76cb0d0 (diff)
downloadsrc-7609aad7d9f6030a50c7061e79c30fb1edb52ca8.tar.gz
src-7609aad7d9f6030a50c7061e79c30fb1edb52ca8.zip
Assert tcbinfo lock in tcp_attach(), as it is required; the caller
(tcp_usr_attach()) currently grabs it. MFC after: 7 days
Notes
Notes: svn path=/head/; revision=146861
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 3a2dbf5f2ead..97776025f3d9 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1187,6 +1187,8 @@ tcp_attach(so)
int isipv6 = INP_CHECK_SOCKAF(so, AF_INET6) != 0;
#endif
+ INP_INFO_WLOCK_ASSERT(&tcbinfo);
+
if (so->so_snd.sb_hiwat == 0 || so->so_rcv.sb_hiwat == 0) {
error = soreserve(so, tcp_sendspace, tcp_recvspace);
if (error)