Was not checking the byte count correctly.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
tags.obj_id != YAFFS_OBJECTID_SUMMARY ||
tags.chunk_used == 0 ||
tags.ecc_result > YAFFS_ECC_RESULT_FIXED ||
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;
result = YAFFS_FAIL;
if (result != YAFFS_OK)
break;