aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bch.h
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2011-03-09 16:12:20 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2011-03-11 14:23:48 +0000
commit2c1c5f199482356c00f70b6f2f368c3455d1230c (patch)
treec2f59799e1e9d510980539de6ee998ac937bd5e4 /include/linux/bch.h
parentmtd: DaVinci: Removed header file that is not required (diff)
downloadlinux-dev-2c1c5f199482356c00f70b6f2f368c3455d1230c.tar.xz
linux-dev-2c1c5f199482356c00f70b6f2f368c3455d1230c.zip
mtd: mxc_nand: fix OOB corruption when page size > 2KiB
When page size is 4KiB, 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 4KiB flashes. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/bch.h')
0 files changed, 0 insertions, 0 deletions