提交 60c3bc1f 编写于 作者: B Boris BREZILLON 提交者: Brian Norris

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: NBoris BREZILLON <b.brezillon.dev@gmail.com>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 3d44dc23
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册