From 866310937a41f9f61547ef83b9f5f36027faa962 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 1 Dec 2020 17:03:42 -0800 Subject: [PATCH] kern: fix assertion in the multi-region pool partition code --- libraries/libmesosphere/source/kern_k_memory_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/source/kern_k_memory_manager.cpp b/libraries/libmesosphere/source/kern_k_memory_manager.cpp index f6719dbba..6ff7acb0c 100644 --- a/libraries/libmesosphere/source/kern_k_memory_manager.cpp +++ b/libraries/libmesosphere/source/kern_k_memory_manager.cpp @@ -68,7 +68,7 @@ namespace ams::kern { region_size = it.GetSize(); region_pool = GetPoolFromMemoryRegionType(it.GetType()); } else { - MESOSPHERE_ASSERT(it.GetAddress() > region_address + region_size); + MESOSPHERE_ASSERT(it.GetAddress() == region_address + region_size); /* Update the size. */ region_size = it.GetEndAddress() - region_address;