diff options
author | 2008-05-06 02:16:26 +0000 | |
---|---|---|
committer | 2008-05-06 02:16:26 +0000 | |
commit | e8da262ebfc87788fcd28bd697bec60685c58982 (patch) | |
tree | 6fb5d2f7667addd798e94aaa1bb98d4c9fb5ace9 /sys | |
parent | sync (diff) | |
download | wireguard-openbsd-e8da262ebfc87788fcd28bd697bec60685c58982.tar.xz wireguard-openbsd-e8da262ebfc87788fcd28bd697bec60685c58982.zip |
Rather than clearing particularly dangerous flags when found, just
zero all flags when we pool_put mbufs.
ok claudio@ henning@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 4 |
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); |