diff options
Diffstat (limited to 'kern/zalloc.c')
-rw-r--r-- | kern/zalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/zalloc.c b/kern/zalloc.c index 839e40f..9b3ac4b 100644 --- a/kern/zalloc.c +++ b/kern/zalloc.c @@ -214,7 +214,7 @@ zone_t zinit(size, align, max, alloc, memtype, name) max = alloc; if (align > 0) { - if (align >= PAGE_SIZE) + if (PAGE_SIZE % align || align % sizeof(z->free_elements)) panic("zinit"); ALIGN_SIZE_UP(size, align); } |