mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 14:43:01 +02:00
Kernel: Add missing VERIFY in MM::allocate_committed_physical_page
This commit is contained in:
committed by
Linus Groh
parent
c681330450
commit
07f1aad3dd
Notes:
sideshowbarker
2024-07-17 06:54:15 +09:00
Author: https://github.com/thomasqueirozb Commit: https://github.com/SerenityOS/serenity/commit/07f1aad3dd Pull-request: https://github.com/SerenityOS/serenity/pull/16350 Reviewed-by: https://github.com/linusg
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user