summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-02-02 23:17:31 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:31 +0200
commit7eb6faf005a5718c40b342cdf8081e184a208d5a (patch)
treee149a7e13b24451a1b2d8ed2300a510bdb269006 /linux
parent4631e2fcdc30454a0e6a83a21a218bc0e2d9e5ed (diff)
2006-02-02 Sergio Lopez <koro@sinrega.org>
* linux/src/drivers/scsi/eata_pio.c (eata_pio_detect): Fix a off-by-one error when probing. * linux/src/drivers/scsi/eata_dma.c (eata_detect): Likewise. * linux/dev/drivers/scsi/eata_dma.c (eata_detect): Likewise.
Diffstat (limited to 'linux')
-rw-r--r--linux/dev/drivers/scsi/eata_dma.c2
-rw-r--r--linux/src/drivers/scsi/eata_dma.c2
-rw-r--r--linux/src/drivers/scsi/eata_pio.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/linux/dev/drivers/scsi/eata_dma.c b/linux/dev/drivers/scsi/eata_dma.c
index b561208..e902ea1 100644
--- a/linux/dev/drivers/scsi/eata_dma.c
+++ b/linux/dev/drivers/scsi/eata_dma.c
@@ -1536,7 +1536,7 @@ int eata_detect(Scsi_Host_Template * tpnt)
find_ISA(&gc, tpnt);
- for (i = 0; i <= MAXIRQ; i++) { /* Now that we know what we have, we */
+ for (i = 0; i < MAXIRQ; i++) { /* Now that we know what we have, we */
if (reg_IRQ[i] >= 1){ /* exchange the interrupt handler which */
free_irq(i, NULL); /* we used for probing with the real one */
request_irq(i, (void *)(eata_int_handler), SA_INTERRUPT|SA_SHIRQ,
diff --git a/linux/src/drivers/scsi/eata_dma.c b/linux/src/drivers/scsi/eata_dma.c
index 2b7da3d..c019813 100644
--- a/linux/src/drivers/scsi/eata_dma.c
+++ b/linux/src/drivers/scsi/eata_dma.c
@@ -1532,7 +1532,7 @@ int eata_detect(Scsi_Host_Template * tpnt)
find_ISA(&gc, tpnt);
- for (i = 0; i <= MAXIRQ; i++) { /* Now that we know what we have, we */
+ for (i = 0; i < MAXIRQ; i++) { /* Now that we know what we have, we */
if (reg_IRQ[i] >= 1){ /* exchange the interrupt handler which */
free_irq(i, NULL); /* we used for probing with the real one */
request_irq(i, (void *)(eata_int_handler), SA_INTERRUPT|SA_SHIRQ,
diff --git a/linux/src/drivers/scsi/eata_pio.c b/linux/src/drivers/scsi/eata_pio.c
index 90dc81f..469b720 100644
--- a/linux/src/drivers/scsi/eata_pio.c
+++ b/linux/src/drivers/scsi/eata_pio.c
@@ -981,7 +981,7 @@ int eata_pio_detect(Scsi_Host_Template * tpnt)
find_pio_ISA(&gc, tpnt);
- for (i = 0; i <= MAXIRQ; i++)
+ for (i = 0; i < MAXIRQ; i++)
if (reg_IRQ[i])
request_irq(i, eata_pio_int_handler, SA_INTERRUPT, "EATA-PIO", NULL);