Procházet zdrojové kódy

Kernel: Reset enumerated buses bitmap before enumerating PCI devices

This allows this method to be used more than once.
Idan Horowitz před 1 rokem
rodič
revize
f6ae9f8a6d
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      Kernel/Bus/PCI/Controller/HostController.cpp

+ 1 - 0
Kernel/Bus/PCI/Controller/HostController.cpp

@@ -108,6 +108,7 @@ UNMAP_AFTER_INIT void HostController::enumerate_attached_devices(Function<void(E
 {
     VERIFY(Access::the().access_lock().is_locked());
     VERIFY(Access::the().scan_lock().is_locked());
+    m_enumerated_buses.fill(false);
     // First scan bus 0. Find any device on that bus, and if it's a PCI-to-PCI
     // bridge, recursively scan it too.
     m_enumerated_buses.set(m_domain.start_bus(), true);