[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:
Petri T. Koistinen 2006-03-31 02:29:54 -08:00 • committed by Linus Torvalds
commit b5ac5d7edb

View file

@ -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;
}