Commit 1e3ae669 authored by Pavel Emelyanov's avatar Pavel Emelyanov

flock: Don't hide image read error on flocks restore

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2c31147f
......@@ -241,14 +241,10 @@ static int restore_file_locks(int pid)
ret = restore_file_lock(fle);
file_lock_entry__free_unpacked(fle, NULL);
if (ret)
goto err;
break;
}
close_safe(&fd);
return 0;
err:
close_safe(&fd);
return ret;
}
......
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