mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
Kernel/PCI: Ensure m_domains is not empty if scanning with memory access
This commit is contained in:
parent
40b1e6376b
commit
72e831e9e9
1 changed files with 1 additions and 0 deletions
|
@ -309,6 +309,7 @@ UNMAP_AFTER_INIT void Access::rescan_hardware_with_memory_addressing()
|
||||||
{
|
{
|
||||||
MutexLocker locker(m_scan_lock);
|
MutexLocker locker(m_scan_lock);
|
||||||
VERIFY(m_device_identifiers.is_empty());
|
VERIFY(m_device_identifiers.is_empty());
|
||||||
|
VERIFY(!m_domains.is_empty());
|
||||||
VERIFY(m_access_type == AccessType::Memory);
|
VERIFY(m_access_type == AccessType::Memory);
|
||||||
for (u32 domain = 0; domain < m_domains.size(); domain++) {
|
for (u32 domain = 0; domain < m_domains.size(); domain++) {
|
||||||
dbgln_if(PCI_DEBUG, "PCI: Scan memory mapped domain {}", domain);
|
dbgln_if(PCI_DEBUG, "PCI: Scan memory mapped domain {}", domain);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue