From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dns1.vpop.net ([216.193.240.2] helo=mail.vpop.net) by pentafluge.infradead.org with esmtp (Exim 4.63 #1 (Red Hat Linux)) id 1IigH5-0000fz-Py for linux-mtd@lists.infradead.org; Fri, 19 Oct 2007 02:03:43 +0100 From: Matt Reimer To: linux-mtd@lists.infradead.org Subject: [PATCH] MTD: make s3c2410's correct_data indicate an error for multi-bit read errors Date: Thu, 18 Oct 2007 18:02:44 -0700 Message-Id: <1192755764-26269-2-git-send-email-mattjreimer@gmail.com> In-Reply-To: <1192755764-26269-1-git-send-email-mattjreimer@gmail.com> References: <1192755764-26269-1-git-send-email-mattjreimer@gmail.com> Cc: Matt Reimer List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Matt Reimer 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 --- 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 077fdcc..2e6b435 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -397,7 +397,7 @@ static int s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat, if ((diff0 & ~(1<