Fix yaffs checkpoint out of space crash
authorCharles Manning <cdhmanning@gmail.com>
Thu, 29 Oct 2009 23:08:15 +0000 (12:08 +1300)
committerArve Hjønnevåg <arve@android.com>
Mon, 8 Feb 2010 23:09:11 +0000 (15:09 -0800)
commit8ff4860c2778c0be92a63808036de337d13fa864
tree4dc9cb73e95579f1703e29e37f38503535da8289
parent4698f1ee43795d9b4b2c6a91c84e000c9bfee21b
Fix yaffs checkpoint out of space crash
An ealy return from checkpoint opening caused the writing flag
to be set incorrectly which caused the wrong execution path during
the close.

Also clean up space left behind by aborted checkpoints.

Also jsut neaten up NULL handling.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
fs/yaffs2/yaffs_checkptrw.c
fs/yaffs2/yaffs_guts.c