From 8f32cfe8b131fc8cb0b9d77bd247fcd389ff8662 Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 26 Aug 2006 02:43:23 +0000 Subject: [PATCH] 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 --- sys/vm/vm_contig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/vm_contig.c b/sys/vm/vm_contig.c index d3dc623b73a8..12ec71828d03 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; }