linux/fs/overlayfs
Dan Carpenter 7b279bbfd2 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>
2021-04-12 12:00:36 +02:00
..
2021-02-23 13:39:45 -08:00
2021-04-12 12:00:36 +02:00
2021-02-23 13:39:45 -08:00
2021-04-12 12:00:36 +02:00
2021-02-23 13:39:45 -08:00
2021-02-23 13:39:45 -08:00