]> git.hungrycats.org Git - linux/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)
committerJiri Slaby <jslaby@suse.cz>
Tue, 4 Aug 2015 14:52:00 +0000 (16:52 +0200)
commit 60c3bc1fd6f1fa40b415ef5b83e2948a89a3d79c upstream.

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>
Cc: Mason <slash.tmp@free.fr>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/mtd/nand/nand_base.c

index d92d94bb71665d654d8e0268e1f6311ca3b126ca..71e205ee27e7a0b0d7a4238ddd67dcfa5d6ac2be 100644 (file)
@@ -1902,7 +1902,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) {