aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-05-26 23:05:44 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-26 23:05:44 +0100
commit29da9cea46f65cb9488641354fe554e9ef8a3a85 (patch)
tree1f7f075e554ef2282510b4c6d9a761043cae072b /drivers/mtd
parent[JFFS2] Switch to using an array of jffs2_raw_node_refs instead of a list. (diff)
downloadlinux-dev-29da9cea46f65cb9488641354fe554e9ef8a3a85.tar.xz
linux-dev-29da9cea46f65cb9488641354fe554e9ef8a3a85.zip
[MTD] Fix thinko in nand_write_page_hwecc()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/nand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index cead9fc4f99f..bb18476acd7b 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 mtd_info *mtd, struct nand_chip *chip,
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]);
}