1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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:
Alan Cox 2006-08-26 02:43:23 +00:00
parent b554f899bd
commit 1f081553cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161629

View File

@ -447,7 +447,7 @@ vm_page_alloc_contig(vm_pindex_t npages, vm_paddr_t low, vm_paddr_t high,
break;
}
/* There are no candidates at all. */
if (i == -1) {
if (i < 0) {
vm_page_unlock_queues();
continue;
}