aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/sm_ftl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/sm_ftl.c b/drivers/mtd/sm_ftl.c
index 4c215896fbcc..67822cf6c025 100644
--- a/drivers/mtd/sm_ftl.c
+++ b/drivers/mtd/sm_ftl.c
@@ -934,7 +934,7 @@ int sm_cache_flush(struct sm_ftl *ftl)
934 934
935 935
936 /* Try to read all unread areas of the cache block*/ 936 /* Try to read all unread areas of the cache block*/
937 for_each_bit(sector_num, &ftl->cache_data_invalid_bitmap, 937 for_each_set_bit(sector_num, &ftl->cache_data_invalid_bitmap,
938 ftl->block_size / SM_SECTOR_SIZE) { 938 ftl->block_size / SM_SECTOR_SIZE) {
939 939
940 if (!sm_read_sector(ftl, 940 if (!sm_read_sector(ftl,