Signed-off-by: Gerd Hoffmann kraxel@redhat.com --- src/ahci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/ahci.c b/src/ahci.c index 0b23f43..7abff75 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);