diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-11-29 19:57:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-11-29 19:57:10 +0000 |
commit | 0eeb99bbd728dd95cc78b95e3a3045407a0babd2 (patch) | |
tree | 660957781d9b03bd551ee40f29f96cae92267684 | |
parent | d6342cfe5c7d76a17cded3bdf94ae181b07e7bfb (diff) |
need splvm() around the call to m_extfree() in the defragger
-rw-r--r-- | sys/kern/uipc_mbuf.c | 7 |
1 files 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. |