From: Armando Visconti Date: Wed, 7 Mar 2012 11:30:53 +0000 (+0530) Subject: mtd: fsmc: fixed data abort inside change_bit() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a612c2ae483ee7e4d40c31d5374edf8a8b025f2a;p=mv-sheeva.git mtd: fsmc: fixed data abort inside change_bit() Since change_bit() requires a (unsigned int *) as second arg, the correct definition of err_idx[] array declared as local variable of fsmc_correct_data() is the following: u32 err_idx[8]; Signed-off-by: Armando Visconti Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c index 4dda9bb3833..cfe15a6f29d 100644 --- a/drivers/mtd/nand/fsmc_nand.c +++ b/drivers/mtd/nand/fsmc_nand.c @@ -604,7 +604,7 @@ static int fsmc_correct_data(struct mtd_info *mtd, uint8_t *dat, struct nand_chip *chip = mtd->priv; struct fsmc_regs *regs = host->regs_va; unsigned int bank = host->bank; - uint16_t err_idx[8]; + uint32_t err_idx[8]; uint64_t ecc_data[2]; uint32_t num_err, i;