Commit 0d486560 authored by Boris BREZILLON's avatar Boris BREZILLON Committed by Greg Kroah-Hartman

mtd: nand: fix erroneous read_buf call in nand_write_page_raw_syndrome

commit 60c3bc1f upstream.

read_buf is called in place of write_buf in the
nand_write_page_raw_syndrome function.
Signed-off-by: default avatarBoris BREZILLON <b.brezillon.dev@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Cc: Mason <slash.tmp@free.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3bbc02f4
......@@ -2000,7 +2000,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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment