1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 06:01:52 +00: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); this->memory_block_manager.Update(std::addressof(allocator), dst_addr, aligned_src_size / PageSize, dst_state, test_perm, KMemoryAttribute_None);
/* Set the output address. */ /* Set the output address. */
*out_addr = dst_addr; *out_addr = dst_addr + (src_start - aligned_src_start);
/* We succeeded. */ /* We succeeded. */
cleanup_guard.Cancel(); cleanup_guard.Cancel();