1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-09-20 05:53:24 +01:00

kern: fix unaligned map alias buffers

This commit is contained in:
Michael Scire 2020-07-12 18:53:45 -07:00
parent e2e5a2ccc2
commit bc767742f7

View file

@ -2180,7 +2180,7 @@ namespace ams::kern {
this->memory_block_manager.Update(std::addressof(allocator), dst_addr, aligned_src_size / PageSize, dst_state, test_perm, KMemoryAttribute_None);
/* Set the output address. */
*out_addr = dst_addr;
*out_addr = dst_addr + (src_start - aligned_src_start);
/* We succeeded. */
cleanup_guard.Cancel();