summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/nand_base.c
diff options
context:
space:
mode:
authorBoris BREZILLON <b.brezillon.dev@gmail.com>2014-02-01 19:10:28 +0100
committerJiri Slaby <jslaby@suse.cz>2015-08-04 16:52:00 +0200
commit10292b8519eada04b59a19718f74164ec2af5373 (patch)
tree1ed7258f11d13e9368dd5ab93b577bac4fcecef5 /drivers/mtd/nand/nand_base.c
parent0842ca9e0f168e64a6bf5906299557f95cc2445a (diff)
downloadlwn-10292b8519eada04b59a19718f74164ec2af5373.tar.gz
lwn-10292b8519eada04b59a19718f74164ec2af5373.zip
mtd: nand: fix erroneous read_buf call in nand_write_page_raw_syndrome
commit 60c3bc1fd6f1fa40b415ef5b83e2948a89a3d79c upstream. 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@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com> Cc: Mason <slash.tmp@free.fr> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r--drivers/mtd/nand/nand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index d92d94bb7166..71e205ee27e7 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -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) {