[Denali] Zero out uninitialized devices.

This commit is contained in:
Drew Galbraith 2023-11-19 22:54:01 -08:00
parent 0f2d6d7cc8
commit 322502fcee
1 changed files with 1 additions and 0 deletions

View File

@ -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 =