Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/sbi/sbi_domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,12 @@ static int root_add_memregion(const struct sbi_domain_memregion *reg)
return rc;
}

/*
* sanitize_domain() may have dropped regions covered by
* another region, so the count is stale at this point.
*/
root_memregs_count = sbi_domain_used_memregions(&root);

/* Merge consecutive memregions with same order and flags */
reg_merged = false;
sbi_domain_for_each_memregion(&root, nreg) {
Expand Down
Loading