From: Lennart Poettering Date: Tue, 27 Aug 2024 10:37:56 +0000 (+0200) Subject: vmspawn: fix duplicate logging on oom X-Git-Tag: v257-rc1~615 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e7a6277977a5117c4c2ebf4a54fbf4e592d61bd;p=thirdparty%2Fsystemd.git vmspawn: fix duplicate logging on oom --- diff --git a/src/vmspawn/vmspawn-mount.c b/src/vmspawn/vmspawn-mount.c index ee63bda96c7..1845a872f23 100644 --- a/src/vmspawn/vmspawn-mount.c +++ b/src/vmspawn/vmspawn-mount.c @@ -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);