aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/ubi/fastmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/ubi/fastmap.c
index 4cfc8da27221..ead861307b3c 100644
--- a/drivers/mtd/ubi/fastmap.c
+++ b/drivers/mtd/ubi/fastmap.c
@@ -826,6 +826,10 @@ static int ubi_attach_fastmap(struct ubi_device *ubi,
826 list_for_each_entry_safe(tmp_aeb, _tmp_aeb, &free, u.list) 826 list_for_each_entry_safe(tmp_aeb, _tmp_aeb, &free, u.list)
827 list_move_tail(&tmp_aeb->u.list, &ai->free); 827 list_move_tail(&tmp_aeb->u.list, &ai->free);
828 828
829 ubi_assert(list_empty(&used));
830 ubi_assert(list_empty(&eba_orphans));
831 ubi_assert(list_empty(&free));
832
829 /* 833 /*
830 * If fastmap is leaking PEBs (must not happen), raise a 834 * If fastmap is leaking PEBs (must not happen), raise a
831 * fat warning and fall back to scanning mode. 835 * fat warning and fall back to scanning mode.