projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d5980b
)
yaffs: Pass through single bit errors from MTD.
author
Arve Hjønnevåg
<arve@android.com>
Sat, 4 Apr 2009 01:58:31 +0000
(18:58 -0700)
committer
Arve Hjønnevåg
<arve@android.com>
Mon, 8 Feb 2010 23:09:08 +0000
(15:09 -0800)
Signed-off-by: Arve Hjønnevåg <arve@android.com>
fs/yaffs2/yaffs_mtdif2.c
patch
|
blob
|
history
diff --git
a/fs/yaffs2/yaffs_mtdif2.c
b/fs/yaffs2/yaffs_mtdif2.c
index d04378cc4cbb8af53b64001d6c7fea86ac8d3c19..fcb50992cdebda0904ef5aba1bb8760b25352555 100644
(file)
--- 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