Kernel: Don't dump regions twice when crashing due to bad access
For whatever reason we were dumping regions when first handling the page fault, and then again when tearing down the process.
This commit is contained in:
parent
664571c88f
commit
54f6b52f71
Notes:
sideshowbarker
2024-07-18 20:57:22 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/54f6b52f713
1 changed files with 0 additions and 1 deletions
|
@ -475,7 +475,6 @@ PageFaultResponse MemoryManager::handle_page_fault(const PageFault& fault)
|
|||
dbgln_if(PAGE_FAULT_DEBUG, "MM: CPU[{}] handle_page_fault({:#04x}) at {}", Processor::id(), fault.code(), fault.vaddr());
|
||||
auto* region = find_region_from_vaddr(fault.vaddr());
|
||||
if (!region) {
|
||||
Process::current()->space().dump_regions();
|
||||
return PageFaultResponse::ShouldCrash;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue