[MTD] [OneNAND] fix call to onenand_verify when writing subpages

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sun Feb 3 02:59:01 EST 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=9d2f0b7a3de28d06ba4011b835b9a7e772553f0d
Commit:     9d2f0b7a3de28d06ba4011b835b9a7e772553f0d
Parent:     d0b36d8cc8f345ec5faadd15daaecfb409b94523
Author:     Adrian Hunter <ext-adrian.hunter at nokia.com>
AuthorDate: Mon Jan 21 17:13:07 2008 +0200
Committer:  Kyungmin Park <kyungmin.park at samsung.com>
CommitDate: Tue Jan 29 17:07:30 2008 +0900

    [MTD] [OneNAND] fix call to onenand_verify when writing subpages
    
    Signed-off-by: Adrian Hunter <ext-adrian.hunter at nokia.com>
    Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
---
 drivers/mtd/onenand/onenand_base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index e5882b6..799bb1b 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -1431,7 +1431,7 @@ static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
 		}
 
 		/* Only check verify write turn on */
-		ret = onenand_verify(mtd, (u_char *) wbuf, to, thislen);
+		ret = onenand_verify(mtd, buf, to, thislen);
 		if (ret) {
 			printk(KERN_ERR "onenand_write_ops_nolock: verify failed %d\n", ret);
 			break;



More information about the linux-mtd-cvs mailing list