aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/setup-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/setup-pci.c')
-rw-r--r--drivers/ide/setup-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c
index eb0945284acc..157fe93ea342 100644
--- a/drivers/ide/setup-pci.c
+++ b/drivers/ide/setup-pci.c
@@ -101,7 +101,7 @@ static ide_hwif_t *ide_match_hwif(unsigned long io_base, u8 bootable, const char
101 return hwif; /* pick an unused entry */ 101 return hwif; /* pick an unused entry */
102 } 102 }
103 } 103 }
104 for (h = 0; h < 2; ++h) { 104 for (h = 0; h < 2 && h < MAX_HWIFS; ++h) {
105 hwif = ide_hwifs + h; 105 hwif = ide_hwifs + h;
106 if (hwif->chipset == ide_unknown) 106 if (hwif->chipset == ide_unknown)
107 return hwif; /* pick an unused entry */ 107 return hwif; /* pick an unused entry */