Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovl: fix missing revert_creds() on error path
commit 7b279bb 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: aa3ff3c ("ovl: copy up of disconnected dentries") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information