nspawn: use -ENOMEM instead of log_oom() in one case
authorLennart Poettering <lennart@poettering.net>
Tue, 29 Nov 2016 22:47:24 +0000 (23:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Nov 2016 23:25:51 +0000 (00:25 +0100)
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

index a9f5ad8..f8a79ec 100644 (file)
@@ -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;