projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
272fd3b
)
[SCSI] eata_pio: off by one in eata_pio_detect()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 23 Aug 2013 12:11:31 +0000
(15:11 +0300)
committer
James Bottomley
<JBottomley@Parallels.com>
Tue, 3 Sep 2013 14:27:58 +0000
(07:27 -0700)
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>
drivers/scsi/eata_pio.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/eata_pio.c
b/drivers/scsi/eata_pio.c
index
356def4
..
1663173
100644
(file)
--- 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)
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);