Browse Source

Kernel: Unbreak x86_64 build (PageDirectory)

Andreas Kling 3 years ago
parent
commit
4b7575fabd
1 changed files with 1 additions and 1 deletions
  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)
 #if ARCH(X86_64)
     directory->m_pml4t = MM.allocate_user_physical_page();
     directory->m_pml4t = MM.allocate_user_physical_page();
     if (!directory->m_pml4t)
     if (!directory->m_pml4t)
-        return {};
+        return ENOMEM;
 #endif
 #endif
 
 
     directory->m_directory_table = MM.allocate_user_physical_page();
     directory->m_directory_table = MM.allocate_user_physical_page();