Skip to content

Commit d7fd859

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. Signed-off-by: Namjae Jeon <[email protected]>
1 parent 6b09f3c commit d7fd859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dir.c

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

1130-
if (ret || clu.dir != EXFAT_EOF_CLUSTER) {
1130+
if (ret || clu.dir == EXFAT_EOF_CLUSTER) {
11311131
/* just initialized hint_stat */
11321132
hint_stat->clu = p_dir->dir;
11331133
hint_stat->eidx = 0;

0 commit comments

Comments
 (0)