diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-05-09 09:37:26 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-05-09 09:37:26 +0000 |
commit | 72d2f0d25d03008b9f21164f179901d8b3f2d07c (patch) | |
tree | 5ccbbb5c8f27336adee1a1864a5016e1824dc2f3 /sys/kern/uipc_domain.c | |
parent | 598182c47a0bed0858c2e616152b64d1d9991c9f (diff) |
Convert a splsoftnet()/splx() dance to NET_ASSERT_LOCKED().
pfctlinput() is only called in the input path with the NET_LOCK() held.
ok bluhm@
Diffstat (limited to 'sys/kern/uipc_domain.c')
-rw-r--r-- | sys/kern/uipc_domain.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c index 4a07e73fb9c..1649ad5f82b 100644 --- a/sys/kern/uipc_domain.c +++ b/sys/kern/uipc_domain.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_domain.c,v 1.49 2017/02/27 19:16:56 claudio Exp $ */ +/* $OpenBSD: uipc_domain.c,v 1.50 2017/05/09 09:37:25 mpi Exp $ */ /* $NetBSD: uipc_domain.c,v 1.14 1996/02/09 19:00:44 christos Exp $ */ /* @@ -221,15 +221,15 @@ pfctlinput(int cmd, struct sockaddr *sa) { struct domain *dp; struct protosw *pr; - int i, s; + int i; + + NET_ASSERT_LOCKED(); - s = splsoftnet(); for (i = 0; (dp = domains[i]) != NULL; i++) { for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++) if (pr->pr_ctlinput) (*pr->pr_ctlinput)(cmd, sa, 0, NULL); } - splx(s); } void |