diff options
author | Hyeongseok Kim <hyeongseok@gmail.com> | 2020-07-08 11:52:33 +0200 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2020-07-21 03:44:15 +0200 |
commit | 41e3928f8c58184fcf0bb22e822af39a436370c7 (patch) | |
tree | 8cc819e888436794a21f146b75596cc013deddd4 /fs | |
parent | exfat: fix wrong hint_stat initialization in exfat_find_dir_entry() (diff) | |
download | linux-41e3928f8c58184fcf0bb22e822af39a436370c7.tar.xz 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')
-rw-r--r-- | fs/exfat/file.c | 2 |
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) { |