summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-10-01 23:08:47 +0200
committerbunnei <bunneidev@gmail.com>2022-10-19 04:13:35 +0200
commitff26190d422599ded0166cba686e7456c59163a5 (patch)
tree5f5e7e11d67f4eb2b8a14608974a2bd86c3934f3 /src/core/hle/service/nvdrv
parentvideo_core: renderer_vulkan: vk_query_cache: Avoid shutdown crash in QueryPool::Reserve. (diff)
downloadyuzu-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.cpp3
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(), &params, sizeof(params));
return result;