exfat: fix incorrect update of stream entry in __exfat_truncate()
authorNamjae Jeon <namjae.jeon@samsung.com>
Wed, 3 Jun 2020 23:05:31 +0000 (08:05 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Tue, 9 Jun 2020 07:50:07 +0000 (16:50 +0900)
commit29bbb14bfc80dd760b07d2be0a27e610562982e3
tree750e7f135a9b5671e538f11b7e9863205f1df871
parentf341a7d8dcc4e3d01544d7bc145633f062ef6249
exfat: fix incorrect update of stream entry in __exfat_truncate()

At truncate, there is a problem of incorrect updating in the file entry
pointer instead of stream entry. This will cause the problem of
overwriting the time field of the file entry to new_size. Fix it to
update stream entry.

Fixes: 98d917047e8b ("exfat: add file operations")
Cc: stable@vger.kernel.org # v5.7
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/exfat/file.c