projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f83284f
)
at1700: Read buffer overflow
author
roel kluin
<roel.kluin@gmail.com>
Sat, 25 Jul 2009 12:01:50 +0000
(12:01 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 27 Jul 2009 01:50:38 +0000
(18:50 -0700)
loop bound looks to be wrong, for an array of length 8
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/at1700.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/at1700.c
b/drivers/net/at1700.c
index 18b566ad4fd17cedda3deff1fa2fefc45aa262a9..cf30e278f182f0a47e8b2770513994f2b9af77e1 100644
(file)
--- a/
drivers/net/at1700.c
+++ b/
drivers/net/at1700.c
@@
-318,7
+318,7
@@
static int __init at1700_probe1(struct net_device *dev, int ioaddr)
pos3 = mca_read_stored_pos( slot, 3 );
pos4 = mca_read_stored_pos( slot, 4 );
- for (l_i = 0; l_i <
0x09
; l_i++)
+ for (l_i = 0; l_i <
8
; l_i++)
if (( pos3 & 0x07) == at1700_ioaddr_pattern[l_i])
break;
ioaddr = at1700_mca_probe_list[l_i];