summaryrefslogtreecommitdiff
path: root/yaffs_mtdif.c
diff options
context:
space:
mode:
authorcharles <charles>2006-11-29 20:21:12 +0000
committercharles <charles>2006-11-29 20:21:12 +0000
commit7b8bbeef9f32bbc33c32afc396974273e10deb32 (patch)
treece2a5e03f16ef21201b096b58c0ff93690d274e8 /yaffs_mtdif.c
parent70f8f5a74a83c0e0f8ee869a6d1c77c07b0e74f3 (diff)
Fix slow 512-byte problem. Thanx Frank.
Diffstat (limited to 'yaffs_mtdif.c')
-rw-r--r--yaffs_mtdif.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaffs_mtdif.c b/yaffs_mtdif.c
index 1510a94..04c4918 100644
--- a/yaffs_mtdif.c
+++ b/yaffs_mtdif.c
@@ -14,7 +14,7 @@
*/
const char *yaffs_mtdif_c_version =
- "$Id: yaffs_mtdif.c,v 1.16 2006-11-08 06:24:34 charles Exp $";
+ "$Id: yaffs_mtdif.c,v 1.17 2006-11-29 20:21:12 charles Exp $";
#include "yportenv.h"
@@ -64,8 +64,10 @@ static inline void translate_oob2spare(yaffs_Spare *spare, __u8 *oob)
spare->tagByte5 = oob[5] == 0xff ? 0xff : oob[5] & 0x3f;
spare->blockStatus = oob[5] & 0x80 ? 0xff : 'Y';
spare->pageStatus = oob[5] & 0x40 ? 0xff : 0;
+ spare->ecc1[0] = spare->ecc1[1] = spare->ecc1[2] = 0xff;
spare->tagByte6 = oob[6];
spare->tagByte7 = oob[7];
+ spare->ecc2[0] = spare->ecc2[1] = spare->ecc2[2] = 0xff;
nspare->eccres1 = nspare->eccres2 = 0; /* FIXME */
}