summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-11-20 10:35:24 +0000
committermpi <mpi@openbsd.org>2017-11-20 10:35:24 +0000
commit94334c667cb14a4cfacff059c4e2da21206ed658 (patch)
treef8289e1c9810f75b425caae8fcd133de0f51a6f9 /sys/netinet/tcp_usrreq.c
parentRemove duplicated code working around the fact that ifpromisc() required (diff)
downloadwireguard-openbsd-94334c667cb14a4cfacff059c4e2da21206ed658.tar.xz
wireguard-openbsd-94334c667cb14a4cfacff059c4e2da21206ed658.zip
Sprinkle some NET_ASSERT_LOCKED(), const and co to prepare running
pr_input handlers without KERNEL_LOCK(). ok visa@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index b6ab40112c2..56725f20260 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_usrreq.c,v 1.159 2017/11/02 14:01:18 florian Exp $ */
+/* $OpenBSD: tcp_usrreq.c,v 1.160 2017/11/20 10:35:24 mpi Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */
/*
@@ -576,6 +576,7 @@ tcp_attach(struct socket *so, int proto)
return (error);
}
+ NET_ASSERT_LOCKED();
error = in_pcballoc(so, &tcbtable);
if (error)
return (error);