ovl: clean up error handling in ovl_get_tmpfile()
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 26 Oct 2018 21:34:39 +0000 (23:34 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 26 Oct 2018 21:34:39 +0000 (23:34 +0200)
commit1f244dc5213960f76e7463bbb5719c331045bbc9
treec75eb162cce11f7e3b717bce0cc80609dbfb11bf
parentbabf4770be0adc69e6d2de150f4040f175e24beb
ovl: clean up error handling in ovl_get_tmpfile()

If security_inode_copy_up() fails, it should not set new_creds, so no need
for the cleanup (which would've Oops-ed anyway, due to old_creds being
NULL).

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/copy_up.c