aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 29090c6d4819..f23ab2c70433 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2344,7 +2344,7 @@ int nand_scan_tail(struct mtd_info *mtd)
2344 return -ENOMEM; 2344 return -ENOMEM;
2345 2345
2346 /* Set the internal oob buffer location, just after the page data */ 2346 /* Set the internal oob buffer location, just after the page data */
2347 chip->oob_poi = chip->buffers + mtd->writesize; 2347 chip->oob_poi = chip->buffers->databuf + mtd->writesize;
2348 2348
2349 /* 2349 /*
2350 * If no default placement scheme is given, select an appropriate one 2350 * If no default placement scheme is given, select an appropriate one