mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 13:19:02 +00:00
Kernel/PCI: Ensure m_domains is not empty if scanning with memory access
This commit is contained in:
parent
40b1e6376b
commit
72e831e9e9
Notes:
sideshowbarker
2024-07-18 01:58:25 +09:00
Author: https://github.com/supercomputer7
Commit: 72e831e9e9
Pull-request: https://github.com/SerenityOS/serenity/pull/10577
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);
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue