mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 08:56:40 +00:00
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
|
@ -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…
Reference in a new issue