diff options
author | Boris BREZILLON <b.brezillon.dev@gmail.com> | 2014-02-01 19:10:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-03 09:29:52 -0700 |
commit | 0d486560ebb5873ee361f456032700fe3f06ec66 (patch) | |
tree | 0d9cfe030a27408e65b0ca34f3977125838a7b1d /drivers/mtd | |
parent | 3bbc02f4c7186fea8fabc3c85cec3793ee6d4a36 (diff) | |
download | lwn-0d486560ebb5873ee361f456032700fe3f06ec66.tar.gz lwn-0d486560ebb5873ee361f456032700fe3f06ec66.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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 55e5423ff6a6..efc542d00c84 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -2000,7 +2000,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) { |