[CRIU] [PATCH] mount: don't worry if a binfmt_misc image is empty

Andrey Vagin avagin at openvz.org
Tue Dec 8 07:59:12 PST 2015


From: Andrew Vagin <avagin at virtuozzo.com>

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

diff --git a/mount.c b/mount.c
index c45ea6f..ec88553 100644
--- a/mount.c
+++ b/mount.c
@@ -1521,7 +1521,7 @@ static int binfmt_misc_restore(struct mount_info *mi)
 		return -1;
 
 	img = open_image(CR_FD_BINFMT_MISC, O_RSTR, mi->s_dev);
-	if (!img || empty_image(img)) {
+	if (!img) {
 		goto free_buf;
 	}
 
-- 
2.4.3



More information about the CRIU mailing list