mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 07:23:14 +00:00
[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>
This commit is contained in:
parent
272fd3b28f
commit
127be35528
@ -919,7 +919,7 @@ static int eata_pio_detect(struct scsi_host_template *tpnt)
|
||||
find_pio_EISA(&gc);
|
||||
find_pio_ISA(&gc);
|
||||
|
||||
for (i = 0; i <= MAXIRQ; i++)
|
||||
for (i = 0; i < MAXIRQ; i++)
|
||||
if (reg_IRQ[i])
|
||||
request_irq(i, do_eata_pio_int_handler, IRQF_DISABLED, "EATA-PIO", NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user