yaffs refactoring: Fix tags compatability bad block marker check
authorCharles Manning <cdhmanning@gmail.com>
Wed, 20 Jun 2012 22:30:52 +0000 (10:30 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Wed, 20 Jun 2012 22:30:52 +0000 (10:30 +1200)
Was looking at the wrong chunks.

yaffs_tagscompat.c

index 3d72be4..23e6947 100644 (file)
@@ -350,7 +350,7 @@ static int yaffs_tags_compat_query_block(struct yaffs_dev *dev,
 
        *seq_number = 0;
 
-       yaffs_rd_chunk_nand(dev, block_no * dev->param.chunks_per_block + 1,
+       yaffs_rd_chunk_nand(dev, block_no * dev->param.chunks_per_block,
                            NULL, &spare0, &dummy, 0);
        yaffs_rd_chunk_nand(dev, block_no * dev->param.chunks_per_block + 1,
                            NULL, &spare1, &dummy, 0);