summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-06-01 11:44:43 +0000
committerrwatson <rwatson@FreeBSD.org>2005-06-01 11:44:43 +0000
commita5b21ce8f450b6272d186c0b7b089d42650f93e3 (patch)
tree653cd808a841fd66aab069241a204fcec469f825 /sys/netinet/tcp_usrreq.c
parentbe143d8ea5221bb7dd9e12b9d22f197034b26c30 (diff)
downloadFreeBSD-src-a5b21ce8f450b6272d186c0b7b089d42650f93e3.zip
FreeBSD-src-a5b21ce8f450b6272d186c0b7b089d42650f93e3.tar.gz
Assert tcbinfo lock in tcp_attach(), as it is required; the caller
(tcp_usr_attach()) currently grabs it. MFC after: 7 days
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 3a2dbf5..9777602 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)
OpenPOWER on IntegriCloud