summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-07-12 06:49:32 +0000
committerkib <kib@FreeBSD.org>2017-07-12 06:49:32 +0000
commit0f2762b4eb929edb2c9e8319f9e16c9098bc9d0a (patch)
tree4b096678fce8ffb5ac0c0e548310b19c1d0f7c2d /sys
parenteeef8dcca6720901e4cd37a26c090b62ae8a05a3 (diff)
downloadFreeBSD-src-0f2762b4eb929edb2c9e8319f9e16c9098bc9d0a.zip
FreeBSD-src-0f2762b4eb929edb2c9e8319f9e16c9098bc9d0a.tar.gz
MFC r320843:
Fix loop termination in vm_map_find_min().
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 70a632e..c9815c0 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -1571,7 +1571,7 @@ vm_map_find_min(vm_map_t map, vm_object_t object, vm_ooffset_t offset,
find_space, prot, max, cow);
if (rv == KERN_SUCCESS || min_addr >= hint)
return (rv);
- *addr = min_addr;
+ *addr = hint = min_addr;
}
}
OpenPOWER on IntegriCloud