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:
c65d319
)
eepro: Read buffer overflow
author
Roel Kluin
<roel.kluin@gmail.com>
Mon, 27 Jul 2009 01:53:17 +0000
(18:53 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 27 Jul 2009 01:53:17 +0000
(18:53 -0700)
io[i] is read before the bounds check on i, order should be reversed
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/eepro.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/eepro.c
b/drivers/net/eepro.c
index cc2ab6412c7382484073f405306a4a76775b59bd..4f70034853482ef8c51262892002756c22599ae2 100644
(file)
--- a/
drivers/net/eepro.c
+++ b/
drivers/net/eepro.c
@@
-1784,7
+1784,7
@@
int __init init_module(void)
printk(KERN_INFO "eepro_init_module: Auto-detecting boards (May God protect us...)\n");
}
- for (i = 0; i
o[i] != -1 && i < MAX_EEPRO
; i++) {
+ for (i = 0; i
< MAX_EEPRO && io[i] != -1
; i++) {
dev = alloc_etherdev(sizeof(struct eepro_local));
if (!dev)
break;