Skip to content

Commit 41e3928

Browse files
hyeongseok-kim901namjaejeon
authored andcommitted
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: 29bbb14 ("exfat: fix incorrect update of stream entry in __exfat_truncate()") Signed-off-by: Hyeongseok Kim <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
1 parent d2fa0c3 commit 41e3928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/exfat/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ int __exfat_truncate(struct inode *inode, loff_t new_size)
176176
ep2->dentry.stream.size = 0;
177177
} else {
178178
ep2->dentry.stream.valid_size = cpu_to_le64(new_size);
179-
ep2->dentry.stream.size = ep->dentry.stream.valid_size;
179+
ep2->dentry.stream.size = ep2->dentry.stream.valid_size;
180180
}
181181

182182
if (new_size == 0) {

0 commit comments

Comments
 (0)