From: Lennart Poettering Date: Wed, 19 Dec 2018 00:01:46 +0000 (+0100) Subject: nspawn: fix an error path X-Git-Tag: v242-rc1~217^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c55d0ae76422d050d0832dce0ff4b724072e8777;p=thirdparty%2Fsystemd.git nspawn: fix an error path --- diff --git a/src/nspawn/nspawn-mount.c b/src/nspawn/nspawn-mount.c index 5a9b8eb3267..916070b3f25 100644 --- a/src/nspawn/nspawn-mount.c +++ b/src/nspawn/nspawn-mount.c @@ -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;