summaryrefslogtreecommitdiff
path: root/kern/zalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/zalloc.c')
-rw-r--r--kern/zalloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kern/zalloc.c b/kern/zalloc.c
index 1a70e4c..f2904e4 100644
--- a/kern/zalloc.c
+++ b/kern/zalloc.c
@@ -835,7 +835,10 @@ static void zone_gc(void)
* hang because zone_map is already locked by vm_map_delete */
extern zone_t vm_map_kentry_zone; /* zone for kernel entry structures */
- zfree(vm_map_kentry_zone, zalloc(vm_map_kentry_zone));
+ vm_offset_t entry1 = zalloc(vm_map_kentry_zone),
+ entry2 = zalloc(vm_map_kentry_zone);
+ zfree(vm_map_kentry_zone, entry1);
+ zfree(vm_map_kentry_zone, entry2);
kmem_free(zone_map, free_addr, PAGE_SIZE);
}