changeset 342:ea8ca3110673

Add cleanup for aborted checkpoint
author charles
date Tue, 03 Nov 2009 02:41:00 +0000
parents 9f91a329e57e
children 5d655bed5d6c
files yaffs_guts.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/yaffs_guts.c
+++ b/yaffs_guts.c
@@ -7456,6 +7456,10 @@ int yaffs_GutsInitialise(yaffs_Device *d
 	yaffs_VerifyBlocks(dev);
 
 
+	/* Clean up any aborted checkpoint data */
+	if(!dev->isCheckpointed && dev->blocksInCheckpoint > 0)
+		yaffs_InvalidateCheckpoint(dev);
+
 	T(YAFFS_TRACE_TRACING,
 	  (TSTR("yaffs: yaffs_GutsInitialise() done.\n" TENDSTR)));
 	return YAFFS_OK;