Skip to content

Commit d2fa0c3

Browse files
committed
exfat: fix wrong hint_stat initialization in exfat_find_dir_entry()
We found the wrong hint_stat initialization in exfat_find_dir_entry(). It should be initialized when cluster is EXFAT_EOF_CLUSTER. Fixes: ca06197 ("exfat: add directory operations") Cc: [email protected] # v5.7 Reviewed-by: Sungjong Seo <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
1 parent 43946b7 commit d2fa0c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/exfat/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ int exfat_find_dir_entry(struct super_block *sb, struct exfat_inode_info *ei,
11121112
ret = exfat_get_next_cluster(sb, &clu.dir);
11131113
}
11141114

1115-
if (ret || clu.dir != EXFAT_EOF_CLUSTER) {
1115+
if (ret || clu.dir == EXFAT_EOF_CLUSTER) {
11161116
/* just initialized hint_stat */
11171117
hint_stat->clu = p_dir->dir;
11181118
hint_stat->eidx = 0;

0 commit comments

Comments
 (0)