Blame SOURCES/0046-exfat-fix-wrong-size-update-of-stream-entry-by-typo.patch
|
Kmods SIG |
50e2b3 |
From 41e3928f8c58184fcf0bb22e822af39a436370c7 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
50e2b3 |
From: Hyeongseok Kim <hyeongseok@gmail.com>
|
|
Kmods SIG |
50e2b3 |
Date: Wed, 8 Jul 2020 18:52:33 +0900
|
|
Kmods SIG |
50e2b3 |
Subject: [Backport 41e3928f8c58] exfat: fix wrong size update of stream entry
|
|
Kmods SIG |
50e2b3 |
by typo
|
|
Kmods SIG |
50e2b3 |
|
|
Kmods SIG |
50e2b3 |
The stream.size field is updated to the value of create timestamp
|
|
Kmods SIG |
50e2b3 |
of the file entry. Fix this to use correct stream entry pointer.
|
|
Kmods SIG |
50e2b3 |
|
|
Kmods SIG |
50e2b3 |
Fixes: 29bbb14bfc80 ("exfat: fix incorrect update of stream entry in __exfat_truncate()")
|
|
Kmods SIG |
50e2b3 |
Signed-off-by: Hyeongseok Kim <hyeongseok@gmail.com>
|
|
Kmods SIG |
50e2b3 |
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
|
|
Kmods SIG |
50e2b3 |
---
|
|
Kmods SIG |
50e2b3 |
src/file.c | 2 +-
|
|
Kmods SIG |
50e2b3 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Kmods SIG |
50e2b3 |
|
|
Kmods SIG |
50e2b3 |
diff --git a/src/file.c b/src/file.c
|
|
Kmods SIG |
50e2b3 |
index 3b7fea465fd41e2859a94afac61dd9768a9f3119..a6a063830edcb68944e55fe7308dee1312463b15 100644
|
|
Kmods SIG |
50e2b3 |
--- a/src/file.c
|
|
Kmods SIG |
50e2b3 |
+++ b/src/file.c
|
|
Kmods SIG |
50e2b3 |
@@ -176,7 +176,7 @@ int __exfat_truncate(struct inode *inode, loff_t new_size)
|
|
Kmods SIG |
50e2b3 |
ep2->dentry.stream.size = 0;
|
|
Kmods SIG |
50e2b3 |
} else {
|
|
Kmods SIG |
50e2b3 |
ep2->dentry.stream.valid_size = cpu_to_le64(new_size);
|
|
Kmods SIG |
50e2b3 |
- ep2->dentry.stream.size = ep->dentry.stream.valid_size;
|
|
Kmods SIG |
50e2b3 |
+ ep2->dentry.stream.size = ep2->dentry.stream.valid_size;
|
|
Kmods SIG |
50e2b3 |
}
|
|
Kmods SIG |
50e2b3 |
|
|
Kmods SIG |
50e2b3 |
if (new_size == 0) {
|
|
Kmods SIG |
50e2b3 |
--
|
|
Kmods SIG |
50e2b3 |
2.31.1
|
|
Kmods SIG |
50e2b3 |
|