Re: [RFC PATCH] mtd: mxc_nand: fix OOB corruption when page size > 2k

Artem Bityutskiy
2011-03-10T13:04:33Z

On Wed, 2011-03-09 at 16:12 +0200, Baruch Siach wrote:
> When page size is 4k, ecc.total is set to 8*9, and this causes
> nand_write_page_hwecc() to read past the initialized part of the eccpos array,
> which corrupts chip->oob_poi with bogus values from ecc_calc.
>
> Fix this by creating a proper nand_ecclayout for 4k flashes.
>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>

Pushed to l2-mtd-2.6.git, thanks.

--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)