]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mtd: nand: fix erroneous read_buf call in nand_write_page_raw_syndrome
authorBoris BREZILLON <b.brezillon.dev@gmail.com>
Sat, 1 Feb 2014 18:10:28 +0000 (19:10 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 11 Mar 2014 05:42:23 +0000 (22:42 -0700)
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>
drivers/mtd/nand/nand_base.c

index 79ed8ccf5065a6f5842c79aaccca26f8b65d406a..3cb1cefcd926d8f6fc548da397ecec72528e1c20 100644 (file)
@@ -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) {