nspawn: fix an error path
authorLennart Poettering <lennart@poettering.net>
Wed, 19 Dec 2018 00:01:46 +0000 (01:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2019 13:11:06 +0000 (14:11 +0100)
src/nspawn/nspawn-mount.c

index 5a9b8eb..916070b 100644 (file)
@@ -910,7 +910,7 @@ static int setup_volatile_yes(
         options = "mode=755";
         r = tmpfs_patch_options(options, uid_shift == 0 ? UID_INVALID : uid_shift, selinux_apifs_context, &buf);
         if (r < 0)
-                return log_oom();
+                goto fail;
         if (r > 0)
                 options = buf;