mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Tighten assertion in MM::find_free_user_physical_page
If our book-keeping of user physical pages is correct, we should always find a physical page, regardless if it was committed or uncommitted.
This commit is contained in:
parent
427f1f7e31
commit
b4e45a6636
Notes:
sideshowbarker
2024-07-17 10:26:08 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/b4e45a6636 Pull-request: https://github.com/SerenityOS/serenity/pull/14198 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -915,7 +915,7 @@ RefPtr<PhysicalPage> MemoryManager::find_free_user_physical_page(bool committed)
|
|||
break;
|
||||
}
|
||||
}
|
||||
VERIFY(!committed || !page.is_null());
|
||||
VERIFY(!page.is_null());
|
||||
return page;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue