Fix an error in kmem_alloc_attr(). Unless "tries" is updated,

kmem_alloc_attr() could get stuck in a loop.

Approved by:	re (kib)
MFC after:	3 days
This commit is contained in:
alc 2011-08-07 00:11:39 +00:00
parent 8a6eaea7b8
commit 24eb641020

View File

@ -265,6 +265,7 @@ retry:
vm_contig_grow_cache(tries, low, high);
vm_map_lock(map);
VM_OBJECT_LOCK(object);
tries++;
goto retry;
}
while (i != 0) {