[Devel] [PATCH criu 1/3] mount: handle error from restore_shared_options()

Andrey Vagin avagin at openvz.org
Mon Nov 21 17:07:18 PST 2016


From: Andrei Vagin <avagin at openvz.org>

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 criu/mount.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/criu/mount.c b/criu/mount.c
index fcec92f..76d1505 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -2493,7 +2493,8 @@ static int propagate_mount(struct mount_info *mi)
 				 * is always shared. If we want to get a private
 				 * mount, we need to convert it.
 				 */
-				restore_shared_options(c, !c->shared_id, 0, 0);
+				if (restore_shared_options(c, !c->shared_id, 0, 0))
+					return -1;
 
 				c->mounted = true;
 				propagate_siblings(c);
-- 
1.8.3.1



More information about the Devel mailing list