diff options
author | Arve Hjønnevåg <arve@android.com> | 2009-04-03 18:58:31 -0700 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2010-02-08 15:09:08 -0800 |
commit | d7288aee1853ac9eda4e7bb7e6f723e545f5be0c (patch) | |
tree | 70e566575bbf8c9c81852d8fdc758837e1582777 /fs/yaffs2 | |
parent | 1d5980b7f201b4eb9f013cdcd678f811f133526f (diff) |
yaffs: Pass through single bit errors from MTD.
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'fs/yaffs2')
-rw-r--r-- | fs/yaffs2/yaffs_mtdif2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/yaffs2/yaffs_mtdif2.c b/fs/yaffs2/yaffs_mtdif2.c index d04378cc4cbb..fcb50992cdeb 100644 --- a/fs/yaffs2/yaffs_mtdif2.c +++ b/fs/yaffs2/yaffs_mtdif2.c @@ -176,6 +176,8 @@ int nandmtd2_ReadChunkWithTagsFromNAND(yaffs_Device *dev, int chunkInNAND, if (tags && retval == -EBADMSG && tags->eccResult == YAFFS_ECC_RESULT_NO_ERROR) tags->eccResult = YAFFS_ECC_RESULT_UNFIXED; + if (tags && retval == -EUCLEAN && tags->eccResult == YAFFS_ECC_RESULT_NO_ERROR) + tags->eccResult = YAFFS_ECC_RESULT_FIXED; if (retval == 0) return YAFFS_OK; else |