diff options
author | 2015-01-04 08:54:01 +0000 | |
---|---|---|
committer | 2015-01-04 08:54:01 +0000 | |
commit | 860049aa036e846a53695d3c86fffb9b6001955c (patch) | |
tree | 226777c719c1534fd77599109157fc55022c8bad /sys/kern/subr_pool.c | |
parent | return 0 for success in ucycom_param() instead of uninitialised memory (diff) | |
download | wireguard-openbsd-860049aa036e846a53695d3c86fffb9b6001955c.tar.xz wireguard-openbsd-860049aa036e846a53695d3c86fffb9b6001955c.zip |
back out r1.173, aka the "* 8" diff. it tickles a problem on some
landisk machines. we've been unable to figure out due to a lack of
hardware (on my part) or time.
discussed with and ok miod@
Diffstat (limited to 'sys/kern/subr_pool.c')
-rw-r--r-- | sys/kern/subr_pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index 3cf04744ce9..678e93ab9b8 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.175 2015/01/04 02:53:19 jsg Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.176 2015/01/04 08:54:01 dlg Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -232,7 +232,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 * 8 > pgsize) + while (size > pgsize) pgsize <<= 1; if (pgsize > PAGE_SIZE) { |