diff options
author | alc <alc@FreeBSD.org> | 2006-08-26 02:43:23 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2006-08-26 02:43:23 +0000 |
commit | 8f32cfe8b131fc8cb0b9d77bd247fcd389ff8662 (patch) | |
tree | a6a2b4b6afd3363d41204070a0f6ca47c664918b /sys/vm/vm_contig.c | |
parent | 72ff1a9186c4943e7e00519c2d1929f1f163c877 (diff) | |
download | FreeBSD-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/vm/vm_contig.c')
-rw-r--r-- | sys/vm/vm_contig.c | 2 |
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; } |