mtd/util nandwrite.c,1.26,1.27

Artem Bityuckiy dedekind at infradead.org
Thu Mar 24 12:05:19 EST 2005


Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv17278

Modified Files:
	nandwrite.c 
Log Message:
Write 0xFF ECC to correct place.


Index: nandwrite.c
===================================================================
RCS file: /home/cvs/mtd/util/nandwrite.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- nandwrite.c	24 Mar 2005 16:07:28 -0000	1.26
+++ nandwrite.c	24 Mar 2005 17:05:16 -0000	1.27
@@ -382,7 +382,7 @@
 				 * at the bad block marker location.
 				 */
 				for (i = 0; i < old_oobinfo.eccbytes; i++)
-					oobbuf[i] = 0xff;
+					oobbuf[old_oobinfo.eccpos[i]] = 0xff;
 			}
 			/* Write OOB data first, as ecc will be placed in there*/
 			oob.start = mtdoffset;





More information about the linux-mtd-cvs mailing list