summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-11-29 23:47:24 +0100
committerLennart Poettering <lennart@poettering.net>2016-12-01 00:25:51 +0100
commit48cbe5f80bd3cb1bb93b00168d8f446493be0280 (patch)
treec1b3c8e61d05c79bc3992a4ebf0381e8a469f232 /src
parent8d4aa2bb32c0fb9ab136167a1594bb4e4a09c8d5 (diff)
nspawn: use -ENOMEM instead of log_oom() in one case
The function is of the "library" kind and doesn't log ENOMEM in all other cases, hence fix the one outlier.
Diffstat (limited to 'src')
-rw-r--r--src/nspawn/nspawn-mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn-mount.c b/src/nspawn/nspawn-mount.c
index a9f5ad8af3..f8a79eca2f 100644
--- a/src/nspawn/nspawn-mount.c
+++ b/src/nspawn/nspawn-mount.c
@@ -132,7 +132,7 @@ int bind_mount_parse(CustomMount **l, unsigned *n, const char *s, bool read_only
m = custom_mount_add(l, n, CUSTOM_MOUNT_BIND);
if (!m)
- return log_oom();
+ return -ENOMEM;
m->source = source;
m->destination = destination;