Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60c3bc1f authored by Boris Brezillon's avatar Boris Brezillon Committed by Brian Norris
Browse files

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: default avatarBoris BREZILLON <b.brezillon.dev@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 3d44dc23
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {