summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/subr_pool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index 3e90589752d..1dd260024e8 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.181 2015/03/14 03:38:50 jsg Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.182 2015/03/20 11:33:17 dlg Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -233,7 +233,7 @@ pool_init(struct pool *pp, size_t size, u_int align, u_int ioff, int flags,
size = roundup(size, align);
if (palloc == NULL) {
- while (size > pgsize)
+ while (size * 8 > pgsize)
pgsize <<= 1;
if (pgsize > PAGE_SIZE) {