mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
vmspawn: fix duplicate logging on oom
This commit is contained in:
committed by
Yu Watanabe
parent
88261bcf3b
commit
4e7a627797
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user