From: Daniel Rosenthal Date: Sun, 5 Oct 2008 21:43:10 +0000 (-0400) Subject: [MTD] [INFTL] Fix infinite loop in INFTL_foldchain X-Git-Tag: v2.6.28-rc1~105^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63fd7f30f328f99956d3c774d17219c3c8d54131;p=pandora-kernel.git [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 Acked-by: Greg Ungerer Signed-off-by: David Woodhouse --- Reading git-diff-tree failed