diff options
author | Daniel Rosenthal <danielrosenthal@acm.org> | 2008-10-05 23:43:10 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-10-08 12:26:38 +0200 |
commit | 63fd7f30f328f99956d3c774d17219c3c8d54131 (patch) | |
tree | d99fed43f643798b44052335af41ca5803250d17 /drivers/mtd/nand/pasemi_nand.c | |
parent | [MTD] [MAPS] Maps: make uclinux mapping driver depend on MTD_RAM (diff) | |
download | linux-63fd7f30f328f99956d3c774d17219c3c8d54131.tar.xz linux-63fd7f30f328f99956d3c774d17219c3c8d54131.zip |
[MTD] [INFTL] Fix infinite loop in INFTL_foldchain
When iterating over a chain in reverse (oldest block first), this
patch correctly marks the PUtable[] entry of the second to last erase
block of a chain as BLOCK_NIL, regardless of whether or not it can
format the last block successfully. Before, the second to last block
was only marked as pointing to BLOCK_NIL if INFTL_formatblock()
succeeded on the last block of the chain, which could potentially
result in an infinite loop if the block was worn out and refused to
format.
Signed-off-by: Daniel Rosenthal <danielrosenthal@acm.org>
Acked-by: Greg Ungerer <gerg@snapgear.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/pasemi_nand.c')
0 files changed, 0 insertions, 0 deletions