diff --git a/libmesosphere/source/kern_k_page_table_base.cpp b/libmesosphere/source/kern_k_page_table_base.cpp index 85e33ed9..289b04fe 100644 --- a/libmesosphere/source/kern_k_page_table_base.cpp +++ b/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; }