瀏覽代碼

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

Thomas Queiroz 2 年之前
父節點
當前提交
c681330450
共有 1 個文件被更改,包括 4 次插入1 次删除
  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;
 }