From 322502fceede82d74b67acb97d6284f6b7108dfc Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Sun, 19 Nov 2023 22:54:01 -0800 Subject: [PATCH] [Denali] Zero out uninitialized devices. --- sys/denali/ahci/ahci_driver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/denali/ahci/ahci_driver.cpp b/sys/denali/ahci/ahci_driver.cpp index 7e9868c..7430723 100644 --- a/sys/denali/ahci/ahci_driver.cpp +++ b/sys/denali/ahci/ahci_driver.cpp @@ -203,6 +203,7 @@ glcr::ErrorCode AhciDriver::LoadHbaRegisters() { glcr::ErrorCode AhciDriver::LoadDevices() { for (uint8_t i = 0; i < 32; i++) { if (!(ahci_hba_->port_implemented & (1 << i))) { + devices_[i] = nullptr; continue; } uint64_t port_addr =