diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index b799b517e49..694a36ceecc 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -1835,7 +1835,7 @@ vm_map_find(vm_map_t map, vm_object_t object, vm_ooffset_t offset, *addr = vm_map_findspace(map, curr_min_addr, length + gap * pagesizes[pidx]); if (*addr + length + gap * pagesizes[pidx] > -+ vm_map_max(map)) + vm_map_max(map)) goto again; /* And randomize the start address. */ *addr += (arc4random() % gap) * pagesizes[pidx];