[CRIU] [PATCH] mount: propagate_mount -- Add braces

Cyrill Gorcunov gorcunov at openvz.org
Mon Aug 17 04:46:08 PDT 2015


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 mount.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mount.c b/mount.c
index a44c42143eb2..c047a1313467 100644
--- a/mount.c
+++ b/mount.c
@@ -1900,7 +1900,7 @@ skip_parent:
 	 * FIXME Currently non-root mounts can be restored
 	 * only if a proper root mount exists
 	 */
-	if (fsroot_mounted(mi) || mi->parent == NULL)
+	if (fsroot_mounted(mi) || mi->parent == NULL) {
 		list_for_each_entry(t, &mi->mnt_bind, mnt_bind) {
 			if (t->mounted)
 				continue;
@@ -1910,6 +1910,7 @@ skip_parent:
 				continue;
 			t->bind = mi;
 		}
+	}
 
 	return 0;
 }
-- 
2.4.3



More information about the CRIU mailing list