mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
Kernel: When entering page_in_from_inode(), assert that !physical_page.
It would be really weird to enter here with a physical page already present in the VMObject's page slot. Let's assert that this doesn't happen.
This commit is contained in:
parent
d8a172609c
commit
7e4376d469
Notes:
sideshowbarker
2024-07-19 15:53:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7e4376d4695
1 changed files with 2 additions and 0 deletions
|
@ -304,6 +304,8 @@ bool MemoryManager::page_in_from_inode(Region& region, unsigned page_index_in_re
|
|||
|
||||
auto& vmo_page = vmo.physical_pages()[region.first_page_index() + page_index_in_region];
|
||||
|
||||
ASSERT(vmo_page.is_null());
|
||||
|
||||
bool interrupts_were_enabled = are_interrupts_enabled();
|
||||
|
||||
if (!interrupts_were_enabled)
|
||||
|
|
Loading…
Add table
Reference in a new issue