Blame SOURCES/0045-exfat-fix-wrong-hint_stat-initialization-in-exfat_fi.patch
|
Kmods SIG |
9e3ffb |
From d2fa0c337d97a5490190b9f3b9c73c8f9f3602a1 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
9e3ffb |
From: Namjae Jeon <namjae.jeon@samsung.com>
|
|
Kmods SIG |
9e3ffb |
Date: Fri, 3 Jul 2020 11:19:46 +0900
|
|
Kmods SIG |
9e3ffb |
Subject: [Backport d2fa0c337d97] exfat: fix wrong hint_stat initialization in
|
|
Kmods SIG |
9e3ffb |
exfat_find_dir_entry()
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
We found the wrong hint_stat initialization in exfat_find_dir_entry().
|
|
Kmods SIG |
9e3ffb |
It should be initialized when cluster is EXFAT_EOF_CLUSTER.
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
Fixes: ca06197382bd ("exfat: add directory operations")
|
|
Kmods SIG |
9e3ffb |
Cc: stable@vger.kernel.org # v5.7
|
|
Kmods SIG |
9e3ffb |
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
|
|
Kmods SIG |
9e3ffb |
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
|
|
Kmods SIG |
9e3ffb |
---
|
|
Kmods SIG |
9e3ffb |
src/dir.c | 2 +-
|
|
Kmods SIG |
9e3ffb |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
diff --git a/src/dir.c b/src/dir.c
|
|
Kmods SIG |
9e3ffb |
index 91ece649285d2824ff99ee5b996adeb8ff973a93..119abf0d8dd6fe5b23e1537341068f3f3060f035 100644
|
|
Kmods SIG |
9e3ffb |
--- a/src/dir.c
|
|
Kmods SIG |
9e3ffb |
+++ b/src/dir.c
|
|
Kmods SIG |
9e3ffb |
@@ -1112,7 +1112,7 @@ int exfat_find_dir_entry(struct super_block *sb, struct exfat_inode_info *ei,
|
|
Kmods SIG |
9e3ffb |
ret = exfat_get_next_cluster(sb, &clu.dir);
|
|
Kmods SIG |
9e3ffb |
}
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
- if (ret || clu.dir != EXFAT_EOF_CLUSTER) {
|
|
Kmods SIG |
9e3ffb |
+ if (ret || clu.dir == EXFAT_EOF_CLUSTER) {
|
|
Kmods SIG |
9e3ffb |
/* just initialized hint_stat */
|
|
Kmods SIG |
9e3ffb |
hint_stat->clu = p_dir->dir;
|
|
Kmods SIG |
9e3ffb |
hint_stat->eidx = 0;
|
|
Kmods SIG |
9e3ffb |
--
|
|
Kmods SIG |
9e3ffb |
2.31.1
|
|
Kmods SIG |
9e3ffb |
|