Skip to content

Commit

Permalink
kern: fix inverted conditional in UnmapProcessCodeMemory
Browse files Browse the repository at this point in the history
  • Loading branch information
SciresM committed Dec 2, 2020
1 parent e760a9d commit bba99d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/libmesosphere/source/kern_k_page_table_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bba99d4

Please sign in to comment.