X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_summary.c;h=def00525a0ed7c2cc1e21e625993860da8d3776e;hp=49eaef1afbca461e7cacd884c2a8fe385fd41e40;hb=95ff7ef3e08cf76d07b08cce3470d4840b27a8ea;hpb=d30818059a7c8300c0afb77e936067fd95840c3e diff --git a/yaffs_summary.c b/yaffs_summary.c index 49eaef1..def0052 100644 --- a/yaffs_summary.c +++ b/yaffs_summary.c @@ -29,8 +29,6 @@ #include "yaffs_getblockinfo.h" #include "yaffs_bitmap.h" -#define YAFFS_SUMMARY_VERSION 1 - /* * The summary is built up in an array of summary tags. * This gets written to the last one or two (maybe more) chunks in a block. @@ -214,7 +212,7 @@ int yaffs_summary_read(struct yaffs_dev *dev, tags.obj_id != YAFFS_OBJECTID_SUMMARY || tags.chunk_used == 0 || tags.ecc_result > YAFFS_ECC_RESULT_FIXED || - this_tx != tags.n_bytes) + tags.n_bytes != (this_tx + sizeof(hdr))) result = YAFFS_FAIL; if (result != YAFFS_OK) break;