There is a distinct bug that sizeof was used incorrectly,
causing the judgment to be ineffective and always flushing checkpt buffer.
Signed-off-by: liaohua <liaohua4@huawei.com>
if (dev->checkpt_open_write) {
if (dev->checkpt_byte_offs !=
if (dev->checkpt_open_write) {
if (dev->checkpt_byte_offs !=
- sizeof(sizeof(struct yaffs_checkpt_chunk_hdr)))
+ sizeof(struct yaffs_checkpt_chunk_hdr))
yaffs2_checkpt_flush_buffer(dev);
} else if (dev->checkpt_block_list) {
for (i = 0;
yaffs2_checkpt_flush_buffer(dev);
} else if (dev->checkpt_block_list) {
for (i = 0;