diff options
author | Matt Reimer <mreimer@vpop.net> | 2007-10-18 21:02:44 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-01-12 09:46:31 -0500 |
commit | 4fac9f698404a5cd50b978fbdb7e54235353c215 (patch) | |
tree | 0670f169887b40b2772a4de82b52d9cb5c2a519f /drivers/mtd/nand | |
parent | de7921f01a407e0cb38143363995db89a5f9a5c5 (diff) |
[MTD] [NAND] make s3c2410 indicate an error for multi-bit read errors
If there were multiple bit errors in the data s3c2410_nand_correct_data()
was returning 0 (no error) instead of -1, so the upper layers (like JFFS2)
would not know the data is corrupt.
Signed-off-by: Matt Reimer <mreimer@vpop.net>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/s3c2410.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index 512acfc89012..21a2cc8636df 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c | |||
@@ -401,7 +401,7 @@ static int s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat, | |||
401 | if ((diff0 & ~(1<<fls(diff0))) == 0) | 401 | if ((diff0 & ~(1<<fls(diff0))) == 0) |
402 | return 1; | 402 | return 1; |
403 | 403 | ||
404 | return 0; | 404 | return -1; |
405 | } | 405 | } |
406 | 406 | ||
407 | /* ECC functions | 407 | /* ECC functions |