:: commit 8d311213a06e1d2fe3f8b3be660ad4402c9ce93e

Mintsuki <mintsuki@protonmail.com> — 2026-02-09 06:36

parents: e700741d9e

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;
             }
 
tab: 248 wrap: offon