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