diff options
Diffstat (limited to 'Kernel/Bus')
-rw-r--r-- | Kernel/Bus/PCI/Access.h | 4 | ||||
-rw-r--r-- | Kernel/Bus/PCI/Controller/VolumeManagementDevice.h | 2 | ||||
-rw-r--r-- | Kernel/Bus/USB/UHCI/UHCIDescriptorPool.h | 1 | ||||
-rw-r--r-- | Kernel/Bus/VirtIO/Queue.h | 2 |
4 files changed, 5 insertions, 4 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 }; }; } diff --git a/Kernel/Bus/USB/UHCI/UHCIDescriptorPool.h b/Kernel/Bus/USB/UHCI/UHCIDescriptorPool.h index ad15ffd8c7..dc9b5d87de 100644 --- a/Kernel/Bus/USB/UHCI/UHCIDescriptorPool.h +++ b/Kernel/Bus/USB/UHCI/UHCIDescriptorPool.h @@ -70,6 +70,7 @@ private: UHCIDescriptorPool(NonnullOwnPtr<Memory::Region> pool_memory_block, StringView name) : m_pool_name(name) , m_pool_region(move(pool_memory_block)) + , m_pool_lock(LockRank::None) { // Go through the number of descriptors to create in the pool, and create a virtual/physical address mapping for (size_t i = 0; i < PAGE_SIZE / sizeof(T); i++) { diff --git a/Kernel/Bus/VirtIO/Queue.h b/Kernel/Bus/VirtIO/Queue.h index 12a5940e15..6563779866 100644 --- a/Kernel/Bus/VirtIO/Queue.h +++ b/Kernel/Bus/VirtIO/Queue.h @@ -96,7 +96,7 @@ private: QueueDriver* m_driver { nullptr }; QueueDevice* m_device { nullptr }; NonnullOwnPtr<Memory::Region> m_queue_region; - Spinlock m_lock; + Spinlock m_lock { LockRank::None }; friend class QueueChain; }; |