diff options
author | alc <alc@FreeBSD.org> | 2011-08-07 00:11:39 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2011-08-07 00:11:39 +0000 |
commit | 24eb64102081422834bde0716200fd6db10b3ad6 (patch) | |
tree | 31a54cbcb352bb69c9dafbca8069a94be914e9d6 | |
parent | 8a6eaea7b81492e0353b8473e3c0b61706e8494d (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/vm/vm_contig.c | 1 |
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) { |