From 0ee6187d30ff4d2e5ee6aa68d8ad3bf288d58f66 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 2 Oct 2007 10:31:46 +0000 Subject: fix allocation exhaustion --- kern/zalloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kern/zalloc.c b/kern/zalloc.c index 54a3ffe..839e40f 100644 --- a/kern/zalloc.c +++ b/kern/zalloc.c @@ -320,7 +320,8 @@ static vm_offset_t zget_space(vm_offset_t size, vm_size_t align) zone_page_init(new_space, space_to_add, ZONE_PAGE_USED); simple_lock(&zget_space_lock); - ALIGN_SIZE_UP(zalloc_next_space, align); + if (align > 0) + ALIGN_SIZE_UP(zalloc_next_space, align); continue; } -- cgit v1.2.3