diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2007-10-02 10:31:46 +0000 |
|---|---|---|
| committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:12 +0200 |
| commit | 0ee6187d30ff4d2e5ee6aa68d8ad3bf288d58f66 (patch) | |
| tree | d57fb0c5a58607420a8019ef571a8090e3847a21 | |
| parent | ea0bf97096beee434b4179eab56c4d9c6923a330 (diff) | |
fix allocation exhaustion
| -rw-r--r-- | kern/zalloc.c | 3 |
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; } |
