mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] drivers/mtd/maps/vmax301.c: fix off by one vmax_mtd
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]>
This commit is contained in:
parent
4d55146598
commit
b5ac5d7edb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue