[MTD] [OneNAND] fix call to onenand_verify when writing subpages
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Mon, 21 Jan 2008 15:13:07 +0000 (17:13 +0200)
committerKyungmin Park <kyungmin.park@samsung.com>
Tue, 29 Jan 2008 08:07:30 +0000 (17:07 +0900)
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/mtd/onenand/onenand_base.c

index e5882b609cf15094bc22db8d57850dd791a4a2f4..799bb1bc3dbcfa888850562e0207b0da2fa7ad2b 100644 (file)
@@ -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;