aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/fastmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/ubi/fastmap.c
index 0648c6996d43..154275182b4b 100644
--- a/drivers/mtd/ubi/fastmap.c
+++ b/drivers/mtd/ubi/fastmap.c
@@ -727,8 +727,10 @@ static int ubi_attach_fastmap(struct ubi_device *ubi,
727 727
728 aeb = NULL; 728 aeb = NULL;
729 list_for_each_entry(tmp_aeb, &used, u.list) { 729 list_for_each_entry(tmp_aeb, &used, u.list) {
730 if (tmp_aeb->pnum == pnum) 730 if (tmp_aeb->pnum == pnum) {
731 aeb = tmp_aeb; 731 aeb = tmp_aeb;
732 break;
733 }
732 } 734 }
733 735
734 /* This can happen if a PEB is already in an EBA known 736 /* This can happen if a PEB is already in an EBA known