exfat: fix uninitialized return value on kernel < 4.16

Reported-by: kuehnelth <kuehnelth@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
Namjae Jeon 2022-05-18 18:08:00 +09:00
parent e7fd35517c
commit 08b714e704

View File

@ -36,7 +36,7 @@ static inline void exfat_d_version_set(struct dentry *dentry,
*/
static int exfat_d_revalidate(struct dentry *dentry, unsigned int flags)
{
int ret;
int ret = 1;
if (flags & LOOKUP_RCU)
return -ECHILD;