From: Charles Manning Date: Mon, 20 Jan 2014 01:38:57 +0000 (+1300) Subject: Remove block number check from summary verification X-Git-Tag: aleph1-release~47 X-Git-Url: https://yaffs.net/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=0ce955ac4bac3514486d15b0836985cfa2e88f74;hp=bc76682d93955cfb33051beb503ad9f8a5450578 Remove block number check from summary verification The summary already has other verification. This one is not needed. The check caused summaries to be ignored if they were not on the numbered block. This caused problems when a summary was embedded in an image and the image is written to a flash with bad blocks. Signed-off-by: Charles Manning --- diff --git a/yaffs_summary.c b/yaffs_summary.c index 6f3c783..3c9e723 100644 --- a/yaffs_summary.c +++ b/yaffs_summary.c @@ -235,7 +235,6 @@ int yaffs_summary_read(struct yaffs_dev *dev, if (result == YAFFS_OK) { /* Verify header */ if (hdr.version != YAFFS_SUMMARY_VERSION || - hdr.block != blk || hdr.seq != bi->seq_number || hdr.sum != yaffs_summary_sum(dev)) result = YAFFS_FAIL;