1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

Kernel/PCI: Ensure m_domains is not empty if scanning with memory access

This commit is contained in:
Liav A 2021-10-22 20:31:42 +03:00 committed by Andreas Kling
parent 40b1e6376b
commit 72e831e9e9

View file

@ -309,6 +309,7 @@ UNMAP_AFTER_INIT void Access::rescan_hardware_with_memory_addressing()
{
MutexLocker locker(m_scan_lock);
VERIFY(m_device_identifiers.is_empty());
VERIFY(!m_domains.is_empty());
VERIFY(m_access_type == AccessType::Memory);
for (u32 domain = 0; domain < m_domains.size(); domain++) {
dbgln_if(PCI_DEBUG, "PCI: Scan memory mapped domain {}", domain);