Skip to content
Commit 7b279bbf authored by Dan Carpenter's avatar Dan Carpenter Committed by Miklos Szeredi
Browse files

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: aa3ff3c1 ("ovl: copy up of disconnected dentries")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent eaab1d45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment