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:
parent
9e6155b923
commit
49fb9da3ca
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue