diff options
author | Thomas Queiroz <thomasqueirozb@gmail.com> | 2022-12-06 21:14:31 -0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-07 16:31:16 +0000 |
commit | 07f1aad3dd81dfbd047f34b32bc82a49e07f79e5 (patch) | |
tree | 3d1ea57d5039c0704dbe24ffa19dde3349617a47 /Kernel/Memory | |
parent | c6813304503e679a2cd0bf442fe6df9e4b0d1537 (diff) | |
download | serenity-07f1aad3dd81dfbd047f34b32bc82a49e07f79e5.zip |
Kernel: Add missing VERIFY in MM::allocate_committed_physical_page
Diffstat (limited to 'Kernel/Memory')
-rw-r--r-- | Kernel/Memory/MemoryManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Memory/MemoryManager.cpp b/Kernel/Memory/MemoryManager.cpp index 7ccff188ca..25ebf1f048 100644 --- a/Kernel/Memory/MemoryManager.cpp +++ b/Kernel/Memory/MemoryManager.cpp @@ -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); |