浏览代码

[MTD] NAND: Correct setting of chip->oob_poi OOB buffer

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
David Woodhouse 19 年之前
父节点
当前提交
784f4d5e66
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mtd/nand/nand_base.c

+ 1 - 1
drivers/mtd/nand/nand_base.c

@@ -2344,7 +2344,7 @@ int nand_scan_tail(struct mtd_info *mtd)
 		return -ENOMEM;
 		return -ENOMEM;
 
 
 	/* Set the internal oob buffer location, just after the page data */
 	/* 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
 	 * If no default placement scheme is given, select an appropriate one