From 92b707db994f821bccc35d6eef67727ea3ab496b Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 22 May 2024 00:05:24 +1000 Subject: [PATCH] Common: Missed MAP_FIXED -> MAP_FIXED_NOREPLACE --- common/Linux/LnxHostSys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/Linux/LnxHostSys.cpp b/common/Linux/LnxHostSys.cpp index 405b9a9dbd363..b7566dedb6049 100644 --- a/common/Linux/LnxHostSys.cpp +++ b/common/Linux/LnxHostSys.cpp @@ -249,7 +249,7 @@ void* HostSys::Mmap(void* base, size_t size, const PageProtectionMode& mode) u32 flags = MAP_PRIVATE | MAP_ANONYMOUS; if (base) - flags |= MAP_FIXED; + flags |= MAP_FIXED_NOREPLACE; #if defined(__APPLE__) && defined(_M_ARM64) if (mode.CanExecute())