linux-stable-rt/drivers/mtd
Daniel Rosenthal 63fd7f30f3 [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>
2008-10-08 11:26:38 +01:00
..
chips [MTD] [NOR] fix cfi_cmdset_0001 FL_SYNCING race (take 2) 2008-09-26 18:56:18 -06:00
devices [MTD] m25p80.c extended jedec support 2008-08-11 17:33:08 +01:00
maps [MTD] [MAPS] Maps: make uclinux mapping driver depend on MTD_RAM 2008-09-26 19:05:34 -06:00
nand [MTD] [NAND] nand_base.c: reset chip first 2008-09-16 08:18:12 -07:00
onenand [MTD] [NAND] OMAP2: add retry after read timeout 2008-09-16 00:39:01 -07:00
ubi
Kconfig [MTD] dataflash OTP support 2008-08-01 21:47:47 +01:00
Makefile
afs.c
ar7part.c
cmdlinepart.c
ftl.c
inftlcore.c [MTD] [INFTL] Fix infinite loop in INFTL_foldchain 2008-10-08 11:26:38 +01:00
inftlmount.c
mtd_blkdevs.c
mtdblock.c
mtdblock_ro.c
mtdchar.c [MTD] dataflash OTP support 2008-08-01 21:47:47 +01:00
mtdconcat.c [MTD] Define and use MTD_FAIL_ADDR_UNKNOWN instead of 0xffffffff 2008-08-12 11:02:15 +01:00
mtdcore.c
mtdcore.h
mtdoops.c
mtdpart.c [MTD] Define and use MTD_FAIL_ADDR_UNKNOWN instead of 0xffffffff 2008-08-12 11:02:15 +01:00
mtdsuper.c [MTD] Fix !CONFIG_BLOCK compile for mtdsuper.c 2008-08-02 07:52:39 +01:00
nftlcore.c
nftlmount.c
ofpart.c
redboot.c
rfd_ftl.c
ssfdc.c [MTD] Use DIV_ROUND_UP 2008-08-02 18:45:18 +01:00