summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-08 12:02:10 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-08 12:02:10 +0000
commiteb1de52cde1c34f769d2cc2f12aca29868e4349a (patch)
treeb68619005e693182491ede234113d16fbccf86c4
parent1469978abd31ea285297b323b76879ca8a266e01 (diff)
more splnet protection to dom_ifattach
-rw-r--r--sys/net/if.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 04747c0e31e..502904478c4 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.58 2002/06/08 11:53:29 itojun Exp $ */
+/* $OpenBSD: if.c,v 1.59 2002/06/08 12:02:09 itojun Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -243,9 +243,12 @@ void
if_attachdomain()
{
struct ifnet *ifp;
+ int s;
+ s = splnet();
for (ifp = TAILQ_FIRST(&ifnet); ifp; ifp = TAILQ_NEXT(ifp, if_list))
if_attachdomain1(ifp);
+ splx(s);
}
void