summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2014-01-20 15:51:59 +1300
committerTom Rini <trini@ti.com>2014-01-20 10:09:51 -0500
commit55283635a0f696cc2316120de49672be7a418735 (patch)
treeb404cafa5adf033005d05b26b4cd01f82c0aa768 /fs
parentb5bbac1a9b07016602559ff483df265fef6c1f83 (diff)
downloadblackbird-obmc-uboot-55283635a0f696cc2316120de49672be7a418735.tar.gz
blackbird-obmc-uboot-55283635a0f696cc2316120de49672be7a418735.zip
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 <cdhmanning@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/yaffs2/yaffs_summary.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/yaffs2/yaffs_summary.c b/fs/yaffs2/yaffs_summary.c
index 46e42f6d7d..e9e1b5d857 100644
--- a/fs/yaffs2/yaffs_summary.c
+++ b/fs/yaffs2/yaffs_summary.c
@@ -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;
OpenPOWER on IntegriCloud