linux/fs/overlayfs
Dan Carpenter a42e385f0a ovl: fix missing revert_creds() on error path
commit 7b279bbfd2b230c7a210ff8f405799c7e46bbf48 upstream.

Smatch complains about missing that the ovl_override_creds() doesn't
have a matching revert_creds() if the dentry is disconnected.  Fix this
by moving the ovl_override_creds() until after the disconnected check.

Fixes: aa3ff3c152ff ("ovl: copy up of disconnected dentries")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-22 10:59:26 +02:00
..
2021-02-10 09:21:07 +01:00
2018-07-18 15:44:41 +02:00
2019-06-25 11:35:52 +08:00
2019-06-25 11:35:52 +08:00
2021-05-07 10:49:26 +02:00
2019-06-25 11:35:52 +08:00