From: Lennart Poettering Date: Tue, 29 Nov 2016 22:47:24 +0000 (+0100) Subject: nspawn: use -ENOMEM instead of log_oom() in one case X-Git-Tag: v233~368^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48cbe5f80bd3cb1bb93b00168d8f446493be0280;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/nspawn/nspawn-mount.c b/src/nspawn/nspawn-mount.c index a9f5ad8af33..f8a79eca2f1 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;