diff --git a/libraries/libmesosphere/source/kern_k_page_table_base.cpp b/libraries/libmesosphere/source/kern_k_page_table_base.cpp index 85e33ed960..289b04fe50 100644 --- a/libraries/libmesosphere/source/kern_k_page_table_base.cpp +++ b/libraries/libmesosphere/source/kern_k_page_table_base.cpp @@ -908,7 +908,7 @@ namespace ams::kern { } /* Check if we're done. */ - if (dst_address + size - 1 > info.GetLastAddress()) { + if (dst_address + size - 1 <= info.GetLastAddress()) { break; }