projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d55146
)
[PATCH] drivers/mtd/maps/vmax301.c: fix off by one vmax_mtd
author
Petri T. Koistinen
<
[email protected]
>
Fri, 31 Mar 2006 10:29:54 +0000
(
02:29
-0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 31 Mar 2006 20:18:49 +0000
(12:18 -0800)
Fix an obvious off-by-one error (vmax_mtd[] contains two elements).
Signed-off-by: Adrian Bunk <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Acked-by: David Woodhouse <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/mtd/maps/vmax301.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/maps/vmax301.c
b/drivers/mtd/maps/vmax301.c
index e0063941c0df3090e71363c8325ef263d8d40ba8..b3e48739543551e6f506fcb362739262073e22e3 100644
(file)
--- a/
drivers/mtd/maps/vmax301.c
+++ b/
drivers/mtd/maps/vmax301.c
@@
-182,7
+182,7
@@
int __init init_vmax301(void)
}
}
- if (!vmax_mtd[
1] && !vmax_mtd[2
]) {
+ if (!vmax_mtd[
0] && !vmax_mtd[1
]) {
iounmap((void *)iomapadr);
return -ENXIO;
}