⬢ DragonFlyBSD Kernel Audit
DF-5800 / fix.diff
← back to finding ↓ download raw
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -3258,7 +3258,7 @@ again:
 		} else {
 			entry = RB_MIN(vm_map_rb_tree, &map->rb_root);
 			if (entry == NULL)
 				hole_start = vm_map_min(map);
 			else
-				hole_start = vm_map_max(map);
+				hole_start = vm_map_min(map);
 		}
 	}