summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-08-26 02:43:23 +0000
committeralc <alc@FreeBSD.org>2006-08-26 02:43:23 +0000
commit8f32cfe8b131fc8cb0b9d77bd247fcd389ff8662 (patch)
treea6a2b4b6afd3363d41204070a0f6ca47c664918b /sys
parent72ff1a9186c4943e7e00519c2d1929f1f163c877 (diff)
downloadFreeBSD-src-8f32cfe8b131fc8cb0b9d77bd247fcd389ff8662.zip
FreeBSD-src-8f32cfe8b131fc8cb0b9d77bd247fcd389ff8662.tar.gz
Prevent a call to contigmalloc() that asks for more physical memory than
the machine has from causing a panic. Submitted by: Michael Plass PR: 101668 MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_contig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_contig.c b/sys/vm/vm_contig.c
index d3dc623..12ec718 100644
--- a/sys/vm/vm_contig.c
+++ b/sys/vm/vm_contig.c
@@ -447,7 +447,7 @@ retry:
break;
}
/* There are no candidates at all. */
- if (i == -1) {
+ if (i < 0) {
vm_page_unlock_queues();
continue;
}
OpenPOWER on IntegriCloud