Pārlūkot izejas kodu

Kernel: Unbreak x86_64 build (PageDirectory)

Andreas Kling 3 gadi atpakaļ
vecāks
revīzija
4b7575fabd
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Kernel/Memory/PageDirectory.cpp

+ 1 - 1
Kernel/Memory/PageDirectory.cpp

@@ -63,7 +63,7 @@ KResultOr<NonnullRefPtr<PageDirectory>> PageDirectory::try_create_for_userspace(
 #if ARCH(X86_64)
     directory->m_pml4t = MM.allocate_user_physical_page();
     if (!directory->m_pml4t)
-        return {};
+        return ENOMEM;
 #endif
 
     directory->m_directory_table = MM.allocate_user_physical_page();