summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.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_input.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_input.c')
-rw-r--r--sys/netinet/tcp_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 1688254dbe6..bf93c0899da 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.351 2017/11/08 20:19:58 bluhm Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.352 2017/11/20 10:35:24 mpi Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -579,6 +579,7 @@ findpcb:
}
KASSERT(sotoinpcb(inp->inp_socket) == inp);
KASSERT(intotcpcb(inp) == NULL || intotcpcb(inp)->t_inpcb == inp);
+ soassertlocked(inp->inp_socket);
/* Check the minimum TTL for socket. */
switch (af) {