Kernel: Add missing VERIFY in MM::allocate_committed_physical_page

This commit is contained in:
Thomas Queiroz
2022-12-06 21:14:31 -03:00
committed by Linus Groh
parent c681330450
commit 07f1aad3dd

View File

@@ -933,6 +933,7 @@ RefPtr<PhysicalPage> MemoryManager::find_free_physical_page(bool committed)
NonnullRefPtr<PhysicalPage> MemoryManager::allocate_committed_physical_page(Badge<CommittedPhysicalPageSet>, ShouldZeroFill should_zero_fill)
{
auto page = find_free_physical_page(true);
VERIFY(page);
if (should_zero_fill == ShouldZeroFill::Yes) {
InterruptDisabler disabler;
auto* ptr = quickmap_page(*page);