]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: fix duplicate logging on oom
authorLennart Poettering <lennart@poettering.net>
Tue, 27 Aug 2024 10:37:56 +0000 (12:37 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 27 Aug 2024 18:03:23 +0000 (03:03 +0900)
src/vmspawn/vmspawn-mount.c

index ee63bda96c77a12119de7001902ecf152d455eac..1845a872f2371a9d43110f5e69731ff245816893 100644 (file)
@@ -59,7 +59,7 @@ int runtime_mount_parse(RuntimeMountContext *ctx, const char *s, bool read_only)
                 return -EINVAL;
 
         if (!GREEDY_REALLOC(ctx->mounts, ctx->n_mounts + 1))
-                return log_oom();
+                return -ENOMEM;
 
         ctx->mounts[ctx->n_mounts++] = TAKE_STRUCT(mount);