In case we have many continous regions without gaps we have to make soure that
we collapse them into one region. The previous version missed to go back one step and do it again.
This commit is contained in:
parent
1aa997ff6a
commit
6df3000ccd
@ -148,6 +148,7 @@ mem_regions(struct mem_region **phys, int *physsz, struct mem_region **avail,
|
||||
memcpy(&aregions[i], &aregions[i+1],
|
||||
(naregions - i - 1)*sizeof(*aregions));
|
||||
naregions--;
|
||||
i--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user