summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2011-08-07 00:11:39 +0000
committeralc <alc@FreeBSD.org>2011-08-07 00:11:39 +0000
commit24eb64102081422834bde0716200fd6db10b3ad6 (patch)
tree31a54cbcb352bb69c9dafbca8069a94be914e9d6 /sys/vm
parent8a6eaea7b81492e0353b8473e3c0b61706e8494d (diff)
downloadFreeBSD-src-24eb64102081422834bde0716200fd6db10b3ad6.zip
FreeBSD-src-24eb64102081422834bde0716200fd6db10b3ad6.tar.gz
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
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_contig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_contig.c b/sys/vm/vm_contig.c
index 025312b..67ebdc3 100644
--- a/sys/vm/vm_contig.c
+++ b/sys/vm/vm_contig.c
@@ -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) {
OpenPOWER on IntegriCloud