Skip to content

Commit

Permalink
mtd: fsmc: fixed data abort inside change_bit()
Browse files Browse the repository at this point in the history
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 <armando.visconti@st.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Armando Visconti authored and David Woodhouse committed Mar 26, 2012
1 parent 02bfc4e commit a612c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/fsmc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a612c2a

Please sign in to comment.