提交 784f4d5e 编写于 作者: D David Woodhouse

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

Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 7dcdcbef
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册