mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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 <linkinjeon@kernel.org>
This commit is contained in:
parent
6b09f3cef3
commit
d7fd859bea
1 changed files with 1 additions and 1 deletions
2
dir.c
2
dir.c
|
|
@ -1127,7 +1127,7 @@ found:
|
|||
ret = exfat_get_next_cluster(sb, &clu.dir);
|
||||
}
|
||||
|
||||
if (ret || clu.dir != EXFAT_EOF_CLUSTER) {
|
||||
if (ret || clu.dir == EXFAT_EOF_CLUSTER) {
|
||||
/* just initialized hint_stat */
|
||||
hint_stat->clu = p_dir->dir;
|
||||
hint_stat->eidx = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue