diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c index 51d33d66324f..6798c55cc91c 100644 --- a/sys/vm/vm_phys.c +++ b/sys/vm/vm_phys.c @@ -1646,10 +1646,10 @@ vm_phys_early_alloc(int domain, size_t alloc_size) * the phys_avail selection below. */ biggestsize = 0; + mem_index = 0; mem_start = 0; mem_end = -1; #ifdef NUMA - mem_index = 0; if (mem_affinity != NULL) { for (i = 0;; i++) { size = mem_affinity[i].end - mem_affinity[i].start;