aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-07-12 07:00:56 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-07-12 07:00:56 +0000
commit4ed0947be90ad989a41eced0b0b825ed2c2a733d (patch)
tree3aca85df95d9bea5c0e1654fca7846c4addd36bf
parent4576aba38152a32b4da29ff840af11c4c5bd5754 (diff)
downloadsrc-4ed0947be90ad989a41eced0b0b825ed2c2a733d.tar.gz
src-4ed0947be90ad989a41eced0b0b825ed2c2a733d.zip
MFC r320843 MFS r320903:
Fix loop termination in vm_map_find_min(). Approved by: re (delphij)
Notes
Notes: svn path=/releng/11.1/; revision=320904
-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 b5e81c5e337b..5dc76d14224d 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;
}
}