diff --git a/mount.c b/mount.c index 768d99e0a..082c81257 100644 --- a/mount.c +++ b/mount.c @@ -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) {