diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-08-23 08:11:31 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-09-03 10:27:58 -0400 |
commit | 127be355285d14b483da0478a33302a680204144 (patch) | |
tree | f5454cd17c8ad2189574b853a5337b9b8c7a9973 /drivers/scsi/eata_pio.c | |
parent | 272fd3b28f5ebbf20ccf39c511744cb682056434 (diff) |
[SCSI] eata_pio: off by one in eata_pio_detect()
Smatch complains that the reg_IRQ[] array only has MAXIRQ (16) elements
so we are one space beyond the end of the array here.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/eata_pio.c')
-rw-r--r-- | drivers/scsi/eata_pio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/eata_pio.c b/drivers/scsi/eata_pio.c index 356def44ce58..1663173cdb91 100644 --- a/drivers/scsi/eata_pio.c +++ b/drivers/scsi/eata_pio.c | |||
@@ -919,7 +919,7 @@ static int eata_pio_detect(struct scsi_host_template *tpnt) | |||
919 | find_pio_EISA(&gc); | 919 | find_pio_EISA(&gc); |
920 | find_pio_ISA(&gc); | 920 | find_pio_ISA(&gc); |
921 | 921 | ||
922 | for (i = 0; i <= MAXIRQ; i++) | 922 | for (i = 0; i < MAXIRQ; i++) |
923 | if (reg_IRQ[i]) | 923 | if (reg_IRQ[i]) |
924 | request_irq(i, do_eata_pio_int_handler, IRQF_DISABLED, "EATA-PIO", NULL); | 924 | request_irq(i, do_eata_pio_int_handler, IRQF_DISABLED, "EATA-PIO", NULL); |
925 | 925 | ||