mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
yaffs: Pass through single bit errors from MTD.
Signed-off-by: Arve Hjønnevåg <arve@android.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user