summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_var.h
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/netinet/tcp_var.h
parent9de6579888d7dc9b89874d3cdd6bd36d24ffb7f6 (diff)
splimp -> splvm. mbuf allocation here.
ok henning@
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r--sys/netinet/tcp_var.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index f0d6d974cfc..299c03eb068 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_var.h,v 1.78 2005/11/15 21:09:46 miod Exp $ */
+/* $OpenBSD: tcp_var.h,v 1.79 2005/11/20 19:25:16 brad Exp $ */
/* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */
/*
@@ -311,7 +311,8 @@ tcp_reass_lock_try(struct tcpcb *tp)
{
int s;
- s = splimp();
+ /* Use splvm() due to mbuf allocation. */
+ s = splvm();
if (tp->t_flags & TF_REASSLOCK) {
splx(s);
return (0);
@@ -326,7 +327,7 @@ tcp_reass_unlock(struct tcpcb *tp)
{
int s;
- s = splimp();
+ s = splvm();
tp->t_flags &= ~TF_REASSLOCK;
splx(s);
}