summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-09-05 07:59:12 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-09-05 07:59:12 +0000
commit2a513b0e402802492123dec3b333c832d280bba0 (patch)
tree663c225623f2c63581761ba2d134c7617fcf6a6b /sys/net
parent42d00f38a7bb037e8858f121842cb455800e6c51 (diff)
Replace NET_ASSERT_LOCKED() by soassertlocked() in *_usrreq().
Not all of them need the NET_LOCK(). ok bluhm@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/rtsock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index 839f5cd9b60..b7ba9cd5d59 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsock.c,v 1.249 2017/09/01 15:05:31 mpi Exp $ */
+/* $OpenBSD: rtsock.c,v 1.250 2017/09/05 07:59:11 mpi Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
@@ -177,6 +177,8 @@ route_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
int af;
int error = 0;
+ soassertlocked(so);
+
rop = sotoroutecb(so);
if (rop == NULL) {
m_freem(m);