Kernel/PCI: Don't use Region::physical_page() to print the ECAM address

Since 827322c139, MMIO regions aren't backed by physical page classes
anymore, so this caused a null RefPtr to be dereferenced.
This commit is contained in:
Sönke Holz authored and Sönke Holz committed 2026-07-12 13:03:08 +02:00
1 parent fb23f3c902
commit 5625fddc59
1 file changed
+1 -1
@@ -75,7 +75,7 @@ void MemoryBackedHostBridge::map_bus_region(BusNumber bus)
VERIFY_NOT_REACHED();
m_mapped_bus_region = region_or_error.release_value();
m_mapped_bus = bus;
dbgln_if(PCI_DEBUG, "PCI: New PCI ECAM Mapped region for bus {} @ {} {}", bus, m_mapped_bus_region->vaddr(), m_mapped_bus_region->physical_page(0)->paddr());
dbgln_if(PCI_DEBUG, "PCI: New PCI ECAM Mapped region for bus {} @ {} {}", bus, m_mapped_bus_region->vaddr(), bus_base_address);
}
VirtualAddress MemoryBackedHostBridge::get_device_configuration_memory_mapped_space(BusNumber bus, DeviceNumber device, FunctionNumber function)