exfat: fix wrong size update of stream entry by typo
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- fs/exfat/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/exfat/file.c +1 -1
@@ -177,7 +177,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 ) {
Signature · 1 line
2.27.0.83.g0313f36
Quoted 5 lines
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 <[email protected]>
My bad, Pushed it into exfat #dev.
Thanks!