diff options
author | Liav A <liavalb@gmail.com> | 2021-10-22 20:31:42 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-23 19:17:44 +0200 |
commit | 72e831e9e9cf8ccfa194ffb5d65199bdc8670830 (patch) | |
tree | dc7fe418e58973e83b520c253d0a3af40c474387 /Kernel/Bus/PCI | |
parent | 40b1e6376bb164e3103ba19cccfa3014ad86cee5 (diff) | |
download | serenity-72e831e9e9cf8ccfa194ffb5d65199bdc8670830.zip |
Kernel/PCI: Ensure m_domains is not empty if scanning with memory access
Diffstat (limited to 'Kernel/Bus/PCI')
-rw-r--r-- | Kernel/Bus/PCI/Access.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Bus/PCI/Access.cpp b/Kernel/Bus/PCI/Access.cpp index c1bded5a41..964afd7e24 100644 --- a/Kernel/Bus/PCI/Access.cpp +++ b/Kernel/Bus/PCI/Access.cpp @@ -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); |