[CRIU] [PATCH] mount: add a missing return on a error path

Andrey Vagin avagin at openvz.org
Thu May 19 14:09:20 PDT 2016


From: Andrew Vagin <avagin at virtuozzo.com>

Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 criu/mount.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/criu/mount.c b/criu/mount.c
index 87c2791..1b06ea1 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -2534,6 +2534,7 @@ static int do_bind_mount(struct mount_info *mi)
 		if (mount(mnt_path, mnt_clean_path, NULL, MS_BIND, NULL)) {
 			pr_perror("Unable to bind-mount %s to %s",
 					mi->bind->mountpoint, mnt_clean_path);
+			return -1;
 		}
 		mnt_path = mnt_clean_path;
 		umount_mnt_path = true;
-- 
2.7.4



More information about the CRIU mailing list