mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +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
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
Add a link
Reference in a new issue