[MTD] Fix thinko in nand_write_page_hwecc()

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri May 26 18:59:01 EDT 2006


Commit:     29da9cea46f65cb9488641354fe554e9ef8a3a85
Parent:     9bfeb691e75b21fdaa80ffae719083200b190381
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Fri May 26 23:05:44 2006 +0100
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Fri May 26 23:05:44 2006 +0100

    [MTD] Fix thinko in nand_write_page_hwecc()
    
    Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>

 drivers/mtd/nand/nand_base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index cead9fc..bb18476 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -1233,7 +1233,7 @@ static void nand_write_page_hwecc(struct
 
 	for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
 		chip->ecc.hwctl(mtd, NAND_ECC_WRITE);
-		chip->write_buf(mtd, p, mtd->writesize);
+		chip->write_buf(mtd, p, eccsize);
 		chip->ecc.calculate(mtd, p, &ecc_calc[i]);
 	}
 



More information about the linux-mtd-cvs mailing list