Skip to content

Commit

Permalink
Kernel: Improve crash info if page_in_from_inode() is called redundan…
Browse files Browse the repository at this point in the history
…tly.
  • Loading branch information
awesomekling committed Feb 3, 2019
1 parent c63d476 commit 3eeff0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Kernel/MemoryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,10 @@ 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());
if (!vmo_page.is_null()) {
dbgprintf("MM: Redundant page_in_from_inode in %s(%u), inode=%u, [%u]\n", current->name().characters(), current->pid(), region.vmo().inode()->identifier().index(), page_index_in_region);
ASSERT_NOT_REACHED();
}

bool interrupts_were_enabled = are_interrupts_enabled();

Expand Down

0 comments on commit 3eeff0d

Please sign in to comment.