[MTD] NAND: Correct setting of chip->oob_poi OOB buffer
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 22 Oct 2006 00:47:45 +0000 (01:47 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 22 Oct 2006 00:47:45 +0000 (01:47 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/nand_base.c

index 29090c6..f23ab2c 100644 (file)
@@ -2344,7 +2344,7 @@ int nand_scan_tail(struct mtd_info *mtd)
                return -ENOMEM;
 
        /* Set the internal oob buffer location, just after the page data */
-       chip->oob_poi = chip->buffers + mtd->writesize;
+       chip->oob_poi = chip->buffers->databuf + mtd->writesize;
 
        /*
         * If no default placement scheme is given, select an appropriate one