Skip to content

Commit

Permalink
pc-ata: fix index bound in pci dev iteration
Browse files Browse the repository at this point in the history
JIRA: RTOS-922
  • Loading branch information
adamgreloch committed Oct 7, 2024
1 parent 5ba4288 commit 0eedc75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/pc-ata/ata.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ int ata_init(void)

if (buses == NULL) {
/* no buses found on common addresses. look through pci config BARs */
for (i = 0; i < sizeof(pci_devClasses); i++) {
for (i = 0; i < sizeof(pci_devClasses) / sizeof(pci_devClasses[0]); i++) {
pctl.pci.id.vendor = PCI_ANY;
pctl.pci.id.device = PCI_ANY;
pctl.pci.id.subvendor = PCI_ANY;
Expand Down

0 comments on commit 0eedc75

Please sign in to comment.