diff --git a/sys/powerpc/powerpc/platform.c b/sys/powerpc/powerpc/platform.c index 474f55e5c2c3..066045cf5cd2 100644 --- a/sys/powerpc/powerpc/platform.c +++ b/sys/powerpc/powerpc/platform.c @@ -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--; } } }