mm/pmm: Fix missing m[i] update before break in full-containment sanitiser path
diff --git a/common/mm/pmm.s2.c b/common/mm/pmm.s2.c
index 1743999d..c3febad1 100644
--- a/common/mm/pmm.s2.c
+++ b/common/mm/pmm.s2.c
@@ -145,7 +145,8 @@ void pmm_sanitise_entries(struct memmap_entry *m, size_t *_count, bool align_ent
// Non-usable entry fully contains usable entry
if (res_base <= base && res_top >= top) {
- base = top;
+ m[i].base = top;
+ m[i].length = 0;
break;
}
