mtd: nand: omap: fix data-abort while correcting bit-flips using BCH16 ecc-scheme

This patch fixes 'data-abort' while correcting bit-flips in BCH16 ecc-scheme,
when number of bit-flip counts was greater than 8.

Signed-off-by: Pekon Gupta <pekon@ti.com>
This commit is contained in:
Pekon Gupta 2013-12-06 10:59:46 +05:30 committed by Tom Rini
parent 9e6155b923
commit 49fb9da3ca
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ static int omap_correct_data_bch(struct mtd_info *mtd, uint8_t *dat,
struct nand_bch_priv *bch = chip->priv;
uint32_t eccbytes = chip->ecc.bytes;
uint32_t error_count = 0, error_max;
uint32_t error_loc[8];
uint32_t error_loc[16];
uint32_t i, ecc_flag = 0;
uint8_t count, err = 0;
uint32_t byte_pos, bit_pos;