mtd/drivers/mtd/maps vmax301.c,1.32,1.33

David Woodhouse dwmw2 at infradead.org
Wed Mar 29 03:44:37 EST 2006


Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv4152/drivers/mtd/maps

Modified Files:
	vmax301.c 
Log Message:
drivers/mtd/maps/vmax301.c: fix off by one vmax_mtd

From: "Petri T. Koistinen" <petri.koistinen at iki.fi>

Fix an obvious off-by-one error (vmax_mtd[] contains two elements).

Signed-off-by: Adrian Bunk <bunk at stusta.de>
Cc: Thomas Gleixner <tglx at linutronix.de>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
Signed-off-by: Andrew Morton <akpm at osdl.org>


Index: vmax301.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/vmax301.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- vmax301.c	7 Nov 2005 11:14:29 -0000	1.32
+++ vmax301.c	29 Mar 2006 08:44:35 -0000	1.33
@@ -182,7 +182,7 @@
 		}
 	}
 
-	if (!vmax_mtd[1] && !vmax_mtd[2]) {
+	if (!vmax_mtd[0] && !vmax_mtd[1]) {
 		iounmap((void *)iomapadr);
 		return -ENXIO;
 	}





More information about the linux-mtd-cvs mailing list