From: Boris BREZILLON Date: Sat, 1 Feb 2014 18:10:28 +0000 (+0100) Subject: mtd: nand: fix erroneous read_buf call in nand_write_page_raw_syndrome X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=60c3bc1fd6f1fa40b415ef5b83e2948a89a3d79c;p=deliverable%2Flinux.git 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 Signed-off-by: Brian Norris --- 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, oob += chip->ecc.prepad; } - chip->read_buf(mtd, oob, eccbytes); + chip->write_buf(mtd, oob, eccbytes); oob += eccbytes; if (chip->ecc.postpad) {