summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2007-10-02 10:31:46 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:12 +0200
commit0ee6187d30ff4d2e5ee6aa68d8ad3bf288d58f66 (patch)
treed57fb0c5a58607420a8019ef571a8090e3847a21
parentea0bf97096beee434b4179eab56c4d9c6923a330 (diff)
fix allocation exhaustion
-rw-r--r--kern/zalloc.c3
1 files changed, 2 insertions, 1 deletions
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;
}