Merge "fs_msg: fix bad tmpfs detection (fix /persist mount errors)"
diff --git a/fs_mgr/fs_mgr.c b/fs_mgr/fs_mgr.c
index ab3c5a6..e9b4125 100644
--- a/fs_mgr/fs_mgr.c
+++ b/fs_mgr/fs_mgr.c
@@ -371,7 +371,7 @@
                     ++error_count;
                     continue;
                 }
-                last_ok_mount_point = fstab->recs[j].mount_point;
+                last_ok_mount_point = fstab->recs[i].mount_point;
             }
             encryptable = 1;
         } else {