Commit 10292b85 authored by Boris BREZILLON's avatar Boris BREZILLON Committed by Jiri Slaby

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 avatarJiri Slaby <jslaby@suse.cz>
parent 0842ca9e
......@@ -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) {
......
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