mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:25:06 +00:00
Kernel: Add missing VERIFY in MM::allocate_committed_physical_page
This commit is contained in:
parent
c681330450
commit
07f1aad3dd
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
NonnullRefPtr<PhysicalPage> MemoryManager::allocate_committed_physical_page(Badge<CommittedPhysicalPageSet>, ShouldZeroFill should_zero_fill)
|
||||||
{
|
{
|
||||||
auto page = find_free_physical_page(true);
|
auto page = find_free_physical_page(true);
|
||||||
|
VERIFY(page);
|
||||||
if (should_zero_fill == ShouldZeroFill::Yes) {
|
if (should_zero_fill == ShouldZeroFill::Yes) {
|
||||||
InterruptDisabler disabler;
|
InterruptDisabler disabler;
|
||||||
auto* ptr = quickmap_page(*page);
|
auto* ptr = quickmap_page(*page);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue