diff options
Diffstat (limited to 'Kernel/Bus/PCI')
-rw-r--r-- | Kernel/Bus/PCI/Access.h | 4 | ||||
-rw-r--r-- | Kernel/Bus/PCI/Controller/VolumeManagementDevice.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Bus/PCI/Access.h b/Kernel/Bus/PCI/Access.h index fa1dc16fb2..14b0d40123 100644 --- a/Kernel/Bus/PCI/Access.h +++ b/Kernel/Bus/PCI/Access.h @@ -53,8 +53,8 @@ private: Vector<Capability> get_capabilities(Address); Optional<u8> get_capabilities_pointer(Address address); - mutable RecursiveSpinlock m_access_lock; - mutable Spinlock m_scan_lock; + mutable RecursiveSpinlock m_access_lock { LockRank::None }; + mutable Spinlock m_scan_lock { LockRank::None }; HashMap<u32, NonnullOwnPtr<HostController>> m_host_controllers; Vector<DeviceIdentifier> m_device_identifiers; diff --git a/Kernel/Bus/PCI/Controller/VolumeManagementDevice.h b/Kernel/Bus/PCI/Controller/VolumeManagementDevice.h index aa5a1e2849..a5baad70d7 100644 --- a/Kernel/Bus/PCI/Controller/VolumeManagementDevice.h +++ b/Kernel/Bus/PCI/Controller/VolumeManagementDevice.h @@ -29,7 +29,7 @@ private: // Note: All read and writes must be done with a spinlock because // Linux says that CPU might deadlock otherwise if access is not serialized. - Spinlock m_config_lock; + Spinlock m_config_lock { LockRank::None }; }; } |