diff options
author | bunnei <bunneidev@gmail.com> | 2022-10-01 23:08:47 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-10-19 04:13:35 +0200 |
commit | ff26190d422599ded0166cba686e7456c59163a5 (patch) | |
tree | 5f5e7e11d67f4eb2b8a14608974a2bd86c3934f3 /src/core/hle/service/nvdrv | |
parent | video_core: renderer_vulkan: vk_query_cache: Avoid shutdown crash in QueryPool::Reserve. (diff) | |
download | yuzu-ff26190d422599ded0166cba686e7456c59163a5.tar yuzu-ff26190d422599ded0166cba686e7456c59163a5.tar.gz yuzu-ff26190d422599ded0166cba686e7456c59163a5.tar.bz2 yuzu-ff26190d422599ded0166cba686e7456c59163a5.tar.lz yuzu-ff26190d422599ded0166cba686e7456c59163a5.tar.xz yuzu-ff26190d422599ded0166cba686e7456c59163a5.tar.zst yuzu-ff26190d422599ded0166cba686e7456c59163a5.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvmap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp index ddf273b5e..b60679021 100644 --- a/src/core/hle/service/nvdrv/devices/nvmap.cpp +++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp @@ -128,7 +128,8 @@ NvResult nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output) } ASSERT(system.CurrentProcess() ->PageTable() - .LockForDeviceAddressSpace(handle_description->address, handle_description->size) + .LockForMapDeviceAddressSpace(handle_description->address, handle_description->size, + Kernel::KMemoryPermission::None, true) .IsSuccess()); std::memcpy(output.data(), ¶ms, sizeof(params)); return result; |