aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris BREZILLON <b.brezillon.dev@gmail.com>2014-02-01 13:10:28 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-03-11 01:42:23 -0400
commit60c3bc1fd6f1fa40b415ef5b83e2948a89a3d79c (patch)
treed6d07c90a77ca724e106de083f6668e3b259b31f
parent3d44dc235ec16fd3db61e1468adabff131d440bc (diff)
mtd: nand: fix erroneous read_buf call in nand_write_page_raw_syndrome
read_buf is called in place of write_buf in the nand_write_page_raw_syndrome function. Signed-off-by: Boris BREZILLON <b.brezillon.dev@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-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 79ed8ccf5065..3cb1cefcd926 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2002,7 +2002,7 @@ static int nand_write_page_raw_syndrome(struct mtd_info *mtd,
2002 oob += chip->ecc.prepad; 2002 oob += chip->ecc.prepad;
2003 } 2003 }
2004 2004
2005 chip->read_buf(mtd, oob, eccbytes); 2005 chip->write_buf(mtd, oob, eccbytes);
2006 oob += eccbytes; 2006 oob += eccbytes;
2007 2007
2008 if (chip->ecc.postpad) { 2008 if (chip->ecc.postpad) {