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
This commit is contained in:
alc 2006-08-26 02:43:23 +00:00
parent 72ff1a9186
commit 8f32cfe8b1

View File

@ -447,7 +447,7 @@ retry:
break;
}
/* There are no candidates at all. */
if (i == -1) {
if (i < 0) {
vm_page_unlock_queues();
continue;
}