From 0eeb99bbd728dd95cc78b95e3a3045407a0babd2 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 29 Nov 2008 19:57:10 +0000 Subject: need splvm() around the call to m_extfree() in the defragger --- sys/kern/uipc_mbuf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 0790ae1963f..da1e3013b8e 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.106 2008/11/26 23:47:14 claudio Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.107 2008/11/29 19:57:09 deraadt Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -398,8 +398,11 @@ m_defrag(struct mbuf *m, int how) m_freem(m->m_next); m->m_next = NULL; - if (m->m_flags & M_EXT) + if (m->m_flags & M_EXT) { + int s = splvm(); m_extfree(m); + splx(s); + } /* * Bounce copy mbuf over to the original mbuf and set everything up. -- cgit v1.2.3