projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e05a9e7
)
[SCSI] gdth: fix buffer overflow
author
Roel Kluin
<roel.kluin@gmail.com>
Thu, 11 Mar 2010 22:09:35 +0000
(14:09 -0800)
committer
James Bottomley
<James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:23:31 +0000
(09:23 -0500)
This allows i == MAXHA, which is out of range
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/gdth.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/gdth.c
b/drivers/scsi/gdth.c
index 35a4b3073ec3fa992a406162b9bf3dac038bff97..a765fe7a55c39b57270a23486cd4a509cb7ca848 100644
(file)
--- a/
drivers/scsi/gdth.c
+++ b/
drivers/scsi/gdth.c
@@
-3842,7
+3842,7
@@
int __init option_setup(char *str)
TRACE2(("option_setup() str %s\n", str ? str:"NULL"));
- while (cur && isdigit(*cur) && i <
=
MAXHA) {
+ while (cur && isdigit(*cur) && i < MAXHA) {
ints[i++] = simple_strtoul(cur, NULL, 0);
if ((cur = strchr(cur, ',')) != NULL) cur++;
}