kern: fix bugs in MapAlias ipc mappings

This commit is contained in:
Michael Scire
2020-07-12 18:17:29 -07:00
parent a8d4b10b17
commit e2e5a2ccc2
3 changed files with 11 additions and 9 deletions

View File

@@ -257,7 +257,9 @@ namespace ams::kern {
/* If there's a previous, we should check for coalescing. */
check_coalesce_prev = true;
prev--;
} else if (cur_info.GetSize() > remaining_size) {
}
if (cur_info.GetSize() > remaining_size) {
/* If we need to, create a new block after and insert it. */
KMemoryBlock *new_block = allocator->Allocate();