diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index 3c974addda..2e282ef04e 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -1004,6 +1004,11 @@ static int action_umount( p = canonicalize_file_name(a); + if (!p) { + r2 = log_error_errno(errno, "Failed to canonicalize path %s: %m", argv[i]); + continue; + } + if (stat(p, &st) < 0) return log_error_errno(errno, "Can't stat %s: %m", p);