From 48cbe5f80bd3cb1bb93b00168d8f446493be0280 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 29 Nov 2016 23:47:24 +0100 Subject: 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. --- src/nspawn/nspawn-mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf