diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | linux/dev/drivers/scsi/eata_dma.c | 2 | ||||
-rw-r--r-- | linux/src/drivers/scsi/eata_dma.c | 2 | ||||
-rw-r--r-- | linux/src/drivers/scsi/eata_pio.c | 2 |
4 files changed, 8 insertions, 3 deletions
@@ -1,5 +1,10 @@ 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. + * linux/src/drivers/net/apricot.c (apricot_probe): Increase eth_addr size to 8 so we do not trash the stack when reading from the io ports. 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); |