mtd: nand: fix erroneous read_buf call in nand_write_page_raw_syndrome

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Apr 5 02:59:02 EDT 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=60c3bc1fd6f1fa40b415ef5b83e2948a89a3d79c
Commit:     60c3bc1fd6f1fa40b415ef5b83e2948a89a3d79c
Parent:     3d44dc235ec16fd3db61e1468adabff131d440bc
Author:     Boris BREZILLON <b.brezillon.dev at gmail.com>
AuthorDate: Sat Feb 1 19:10:28 2014 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Mar 10 22:42:23 2014 -0700

    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: Boris BREZILLON <b.brezillon.dev at gmail.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/nand_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 79ed8cc..3cb1cef 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -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) {



More information about the linux-mtd-cvs mailing list