From 1f317d815292fb8798b78fcda76ef7a00cb0a719 Mon Sep 17 00:00:00 2001 From: alc Date: Wed, 8 Nov 2006 06:23:29 +0000 Subject: Ensure that the page's oflags field is initialized by contigmalloc(). --- sys/vm/vm_contig.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/vm') diff --git a/sys/vm/vm_contig.c b/sys/vm/vm_contig.c index e77ad68..1e86998 100644 --- a/sys/vm/vm_contig.c +++ b/sys/vm/vm_contig.c @@ -381,6 +381,7 @@ vm_contig_unqueue_free(vm_page_t m) vm_page_zero_count--; /* Don't clear the PG_ZERO flag; we'll need it later. */ m->flags = PG_UNMANAGED | (m->flags & PG_ZERO); + m->oflags = 0; KASSERT(m->dirty == 0, ("contigmalloc2: page %p was dirty", m)); m->wire_count = 0; -- cgit v1.1