diff options
Diffstat (limited to 'yaffs_mtdif2.c')
-rw-r--r-- | yaffs_mtdif2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yaffs_mtdif2.c b/yaffs_mtdif2.c index d3a6552..1b917be 100644 --- a/yaffs_mtdif2.c +++ b/yaffs_mtdif2.c @@ -16,7 +16,7 @@ /* mtd interface for YAFFS2 */ const char *yaffs_mtdif2_c_version = - "$Id: yaffs_mtdif2.c,v 1.11 2006-04-25 00:41:43 wookey Exp $"; + "$Id: yaffs_mtdif2.c,v 1.12 2006-09-21 08:13:59 charles Exp $"; #include "yportenv.h" @@ -120,6 +120,9 @@ int nandmtd2_ReadChunkWithTagsFromNAND(yaffs_Device * dev, int chunkInNAND, if (tags) yaffs_UnpackTags2(tags, &pt); + + if(tags && retval == -EBADMSG && tags->eccResult == YAFFS_ECC_RESULT_NO_ERROR) + tags->eccResult = YAFFS_ECC_RESULT_UNFIXED; if (retval == 0) return YAFFS_OK; |