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

Submitted by Andrei Vagin on Nov. 22, 2016, 1:07 a.m.

Details

Message ID 1479776840-23544-1-git-send-email-avagin@openvz.org
State New
Series "Series without cover letter"
Headers show

Commit Message

Andrei Vagin Nov. 22, 2016, 1:07 a.m.
From: Andrei Vagin <avagin@openvz.org>

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

Patch hide | download patch | download mbox

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);