From e7167246a653421564a388f4cda4b05444ebbd0b Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 20 Nov 2005 19:25:17 +0000 Subject: splimp -> splvm. mbuf allocation here. ok henning@ --- sys/netinet/ip_input.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/netinet/ip_input.c') diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 4058f537758..42afd68f6b6 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_input.c,v 1.134 2005/10/05 17:32:22 norby Exp $ */ +/* $OpenBSD: ip_input.c,v 1.135 2005/11/20 19:25:16 brad Exp $ */ /* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */ /* @@ -137,7 +137,8 @@ ipq_lock_try() { int s; - s = splimp(); + /* Use splvm() due to mbuf allocation. */ + s = splvm(); if (ipq_locked) { splx(s); return (0); @@ -154,7 +155,7 @@ ipq_unlock() { int s; - s = splimp(); + s = splvm(); ipq_locked = 0; splx(s); } -- cgit v1.2.3