Commit 96a12d47 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

mount: don't worry if a binfmt_misc image is empty

Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 16dccd5c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment