summaryrefslogtreecommitdiff
path: root/lib/atomic64_test.c
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 /lib/atomic64_test.c
parentf43272c482661bc88347bba237976eecfc1dbf5b (diff)
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 'lib/atomic64_test.c')
0 files changed, 0 insertions, 0 deletions