Browse Source

Kernel: Don't panic if MemoryManager::find_free_physical_page fails

Thomas Queiroz 2 years ago
parent
commit
c681330450
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Kernel/Memory/MemoryManager.cpp

+ 4 - 1
Kernel/Memory/MemoryManager.cpp

@@ -923,7 +923,10 @@ RefPtr<PhysicalPage> MemoryManager::find_free_physical_page(bool committed)
             }
         }
     });
-    VERIFY(!page.is_null());
+
+    if (page.is_null())
+        dbgln("MM: couldn't find free physical page. Continuing...");
+
     return page;
 }