summaryrefslogtreecommitdiff
path: root/Kernel/Memory
diff options
context:
space:
mode:
authorThomas Queiroz <thomasqueirozb@gmail.com>2022-12-06 21:14:31 -0300
committerLinus Groh <mail@linusgroh.de>2022-12-07 16:31:16 +0000
commit07f1aad3dd81dfbd047f34b32bc82a49e07f79e5 (patch)
tree3d1ea57d5039c0704dbe24ffa19dde3349617a47 /Kernel/Memory
parentc6813304503e679a2cd0bf442fe6df9e4b0d1537 (diff)
downloadserenity-07f1aad3dd81dfbd047f34b32bc82a49e07f79e5.zip
Kernel: Add missing VERIFY in MM::allocate_committed_physical_page
Diffstat (limited to 'Kernel/Memory')
-rw-r--r--Kernel/Memory/MemoryManager.cpp1
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);