summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorAriane van der Steldt <ariane@cvs.openbsd.org>2011-07-18 16:50:57 +0000
committerAriane van der Steldt <ariane@cvs.openbsd.org>2011-07-18 16:50:57 +0000
commit5f3665748e1c97bbd52a0aad3f96f3414bf38fa4 (patch)
tree861a650ebb07730030d4ece94ad0e60bc2f72a6f /sys/kern
parentd26691b0da3c8caa2ed07a45d46f2ee24d0ef463 (diff)
Allocations fit if [the end of free space] >= [the end of allocated space].
Change > in comparison to >=.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_hibernate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c
index 62843f6871f..ea15e4fc82b 100644
--- a/sys/kern/subr_hibernate.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hibernate.c,v 1.14 2011/07/18 16:48:26 ariane Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.15 2011/07/18 16:50:56 ariane Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -435,7 +435,7 @@ retry:
pg_addr = VM_PAGE_TO_PHYS(pig_pg);
piglet_addr = (pg_addr + (align - 1)) & ~(align - 1);
- if (atop(pg_addr) + pig_pg->fpgsz >
+ if (atop(pg_addr) + pig_pg->fpgsz >=
atop(piglet_addr) + sz) {
goto found;
}