From 53be1f138f51b3239c3c0d267de657496aa57c35 Mon Sep 17 00:00:00 2001 From: mailwl Date: Thu, 16 Jan 2025 20:22:39 +0300 Subject: [PATCH] Fix error code --- src/core/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 1650cb293..d9ebd72f6 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -291,7 +291,7 @@ int MemoryManager::MapMemory(void** out_addr, VAddr virtual_addr, size_t size, M const size_t remaining_size = vma.base + vma.size - mapped_addr; if (vma.IsMapped()) { LOG_ERROR(Kernel_Vmm, "Attempted to map already mapped memory at {:#x}", virtual_addr); - return ORBIS_KERNEL_ERROR_EBUSY; + return ORBIS_KERNEL_ERROR_ENOMEM; } if (remaining_size < size) { LOG_ERROR(Kernel_Vmm, "Could not map memory with size {:#x}", size);