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: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
Showing
想要评论请 注册 或 登录