diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index 2377355cdd83..5fe1b1e62c94 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -386,7 +386,9 @@ kmem_malloc(map, size, flags) i -= PAGE_SIZE; m = vm_page_lookup(kmem_object, OFF_TO_IDX(offset + i)); + vm_page_lock_queues(); vm_page_free(m); + vm_page_unlock_queues(); } vm_map_delete(map, addr, addr + size); vm_map_unlock(map);