Kernel: Remove assertion from Region::commit

We should be able to gracefully fail a commit in low-memory situations.
This commit is contained in:
Tom 2020-09-01 13:39:31 -06:00 committed by Andreas Kling
commit 30d36a3ad1
Notes: sideshowbarker 2024-07-19 02:56:02 +09:00

View file

@ -144,7 +144,6 @@ bool Region::commit(size_t page_index)
auto physical_page = MM.allocate_user_physical_page(MemoryManager::ShouldZeroFill::Yes);
if (!physical_page) {
klog() << "MM: commit was unable to allocate a physical page";
ASSERT_NOT_REACHED();
return false;
}
vmobject_physical_page_entry = move(physical_page);