summaryrefslogtreecommitdiff
path: root/sys/netinet6/frag6.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-11-20 19:25:17 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-11-20 19:25:17 +0000
commite7167246a653421564a388f4cda4b05444ebbd0b (patch)
treed0803920dd587e3012e9a6c96fe8d29698ba6d82 /sys/netinet6/frag6.c
parent9de6579888d7dc9b89874d3cdd6bd36d24ffb7f6 (diff)
splimp -> splvm. mbuf allocation here.
ok henning@
Diffstat (limited to 'sys/netinet6/frag6.c')
-rw-r--r--sys/netinet6/frag6.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c
index bc283e63e73..7f06cede88a 100644
--- a/sys/netinet6/frag6.c
+++ b/sys/netinet6/frag6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frag6.c,v 1.21 2003/10/01 21:41:05 itojun Exp $ */
+/* $OpenBSD: frag6.c,v 1.22 2005/11/20 19:25:16 brad Exp $ */
/* $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $ */
/*
@@ -81,7 +81,8 @@ ip6q_lock_try()
{
int s;
- s = splimp();
+ /* Use splvm() due to mbuf allocation. */
+ s = splvm();
if (ip6q_locked) {
splx(s);
return (0);
@@ -96,7 +97,7 @@ ip6q_unlock()
{
int s;
- s = splimp();
+ s = splvm();
ip6q_locked = 0;
splx(s);
}