]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
yaffs2: Remove block number check from summary verification
authorCharles Manning <cdhmanning@gmail.com>
Mon, 20 Jan 2014 02:51:59 +0000 (15:51 +1300)
committerTom Rini <trini@ti.com>
Mon, 20 Jan 2014 15:09:51 +0000 (10:09 -0500)
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 <cdhmanning@gmail.com>
fs/yaffs2/yaffs_summary.c

index 46e42f6d7d4832622d61254c06cb9731aef18e83..e9e1b5d85776939c20e37e272343c9eb44f1bf1a 100644 (file)
@@ -232,7 +232,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;