aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ahci.c b/src/ahci.c
index a03d8be4..4ccee86b 100644
--- a/src/ahci.c
+++ b/src/ahci.c
@@ -417,7 +417,7 @@ ahci_detect(void *data)
int rc;
max = ctrl->caps & 0x1f;
- for (pnr = 0; pnr < max; pnr++) {
+ for (pnr = 0; pnr <= max; pnr++) {
if (!(ctrl->ports & (1 << pnr)))
continue;
dprintf(2, "AHCI/%d: probing\n", pnr);