summaryrefslogtreecommitdiffstats
path: root/fs/exfat
diff options
context:
space:
mode:
authorHyeongseok Kim <hyeongseok@gmail.com>2020-07-08 18:52:33 +0900
committerNamjae Jeon <namjae.jeon@samsung.com>2020-07-21 10:44:15 +0900
commit41e3928f8c58184fcf0bb22e822af39a436370c7 (patch)
tree8cc819e888436794a21f146b75596cc013deddd4 /fs/exfat
parentd2fa0c337d97a5490190b9f3b9c73c8f9f3602a1 (diff)
downloadlinux-41e3928f8c58184fcf0bb22e822af39a436370c7.tar.gz
linux-41e3928f8c58184fcf0bb22e822af39a436370c7.tar.bz2
linux-41e3928f8c58184fcf0bb22e822af39a436370c7.zip
exfat: fix wrong size update of stream entry by typo
The stream.size field is updated to the value of create timestamp of the file entry. Fix this to use correct stream entry pointer. Fixes: 29bbb14bfc80 ("exfat: fix incorrect update of stream entry in __exfat_truncate()") Signed-off-by: Hyeongseok Kim <hyeongseok@gmail.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Diffstat (limited to 'fs/exfat')
-rw-r--r--fs/exfat/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exfat/file.c b/fs/exfat/file.c
index 3b7fea465fd4..a6a063830edc 100644
--- a/fs/exfat/file.c
+++ b/fs/exfat/file.c
@@ -176,7 +176,7 @@ int __exfat_truncate(struct inode *inode, loff_t new_size)
ep2->dentry.stream.size = 0;
} else {
ep2->dentry.stream.valid_size = cpu_to_le64(new_size);
- ep2->dentry.stream.size = ep->dentry.stream.valid_size;
+ ep2->dentry.stream.size = ep2->dentry.stream.valid_size;
}
if (new_size == 0) {