Commit 49e48a7c authored by Dan Carpenter's avatar Dan Carpenter Committed by Yang Yingliang
Browse files

ovl: fix missing revert_creds() on error path



stable inclusion
from linux-4.19.191
commit a42e385f0a4160709882b9435b874a7cdab24d46

--------------------------------

commit 7b279bbf 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: 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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent dfb4f495
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment