2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

propogate the error if resolve_external_mounts() fails

collect_mnt_namespaces() returns with ret=0 if resolve_external_mounts()
fails.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Oleg Nesterov 2015-04-14 15:16:22 +03:00 committed by Pavel Emelyanov
parent 6400fc9516
commit b93821bf1d

View File

@ -2677,7 +2677,8 @@ int collect_mnt_namespaces(bool for_dump)
if (ret)
goto err;
if (resolve_external_mounts(mntinfo))
ret = resolve_external_mounts(mntinfo);
if (ret)
goto err;
if (arg.need_to_validate) {