Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 5528363

Browse files
cdhmanningtrini
authored andcommitted
yaffs2: 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 <[email protected]>
1 parent b5bbac1 commit 5528363

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/yaffs2/yaffs_summary.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ int yaffs_summary_read(struct yaffs_dev *dev,
232232
if (result == YAFFS_OK) {
233233
/* Verify header */
234234
if (hdr.version != YAFFS_SUMMARY_VERSION ||
235-
hdr.block != blk ||
236235
hdr.seq != bi->seq_number ||
237236
hdr.sum != yaffs_summary_sum(dev))
238237
result = YAFFS_FAIL;

0 commit comments

Comments
 (0)