ovl: fix tmpfile leak
authorMiklos Szeredi <mszeredi@redhat.com>
Tue, 24 Jan 2023 15:41:18 +0000 (16:41 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 27 Jan 2023 15:16:12 +0000 (16:16 +0100)
commitbaabaa505563362b71f2637aedd7b807d270656c
tree605153280b2efe756d9137f3aed7d6da767955a8
parent2241ab53cbb5cdb08a6b2d4688feb13971058f65
ovl: fix tmpfile leak

Missed an error cleanup.

Reported-by: syzbot+fd749a7ea127a84e0ffd@syzkaller.appspotmail.com
Fixes: 2b1a77461f16 ("ovl: use vfs_tmpfile_open() helper")
Cc: <stable@vger.kernel.org> # v6.1
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/copy_up.c