summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2008-05-06 02:16:27 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2008-05-06 02:16:27 +0000
commit344eebe6cf302f9d5ccb9beaea0370a2aa7831e3 (patch)
treea48b4cc95850b8426514d9a3516bbffd696e7521 /sys/kern/uipc_mbuf.c
parent15be77cac7c4e0ceeccc84d8568fc47862bda110 (diff)
Rather than clearing particularly dangerous flags when found, just
zero all flags when we pool_put mbufs. ok claudio@ henning@
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 4b7618b5cfd..9818f015c87 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.88 2008/01/16 19:28:23 thib Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.89 2008/05/06 02:16:26 krw Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -278,9 +278,9 @@ m_free(struct mbuf *m)
m->m_ext.ext_size, m->m_ext.ext_arg);
else
free(m->m_ext.ext_buf,m->m_ext.ext_type);
- m->m_flags &= ~(M_CLUSTER|M_EXT);
m->m_ext.ext_size = 0;
}
+ m->m_flags = 0;
n = m->m_next;
pool_put(&mbpool, m);
splx(s);