summaryrefslogtreecommitdiff
path: root/Kernel/Storage
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2022-03-13 21:10:24 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-18 00:51:16 -0700
commit47cdcc9f67e5e33659589348f739675bae7eff7f (patch)
treee909234aa51d1dad8101ff10b97e562c3003459a /Kernel/Storage
parent199ea9ccf9d848f80963185906ce4c387130ec88 (diff)
downloadserenity-47cdcc9f67e5e33659589348f739675bae7eff7f.zip
Kernel: Zero initialize all members in NVMeController
Found by PVS-Studio.
Diffstat (limited to 'Kernel/Storage')
-rw-r--r--Kernel/Storage/NVMe/NVMeController.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Storage/NVMe/NVMeController.h b/Kernel/Storage/NVMe/NVMeController.h
index d881e48f52..6f8615c0bb 100644
--- a/Kernel/Storage/NVMe/NVMeController.h
+++ b/Kernel/Storage/NVMe/NVMeController.h
@@ -73,10 +73,10 @@ private:
NonnullRefPtrVector<NVMeNameSpace> m_namespaces;
Memory::TypedMapping<volatile ControllerRegister> m_controller_regs;
bool m_admin_queue_ready { false };
- size_t m_device_count {};
+ size_t m_device_count { 0 };
AK::Time m_ready_timeout;
- u32 m_bar;
- u8 m_dbl_stride;
+ u32 m_bar { 0 };
+ u8 m_dbl_stride { 0 };
static Atomic<u8> controller_id;
};
}