Commit 784f4d5e authored by David Woodhouse's avatar David Woodhouse

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

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment