commit | 7b279bbfd2b230c7a210ff8f405799c7e46bbf48 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Mar 23 16:19:35 2021 +0300 |
committer | Miklos Szeredi <mszeredi@redhat.com> | Mon Apr 12 12:00:36 2021 +0200 |
tree | b63c4c5a7a870cf49cd993e199b52df21090a30c | |
parent | eaab1d45cdb4bb0c846bd23c3d666d5b90af7b41 [diff] |
ovl: fix missing revert_creds() on error path 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>