]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd266f2dd7f5158952ef616c8e3a84820a91a08b8
tree750e7f135a9b5671e538f11b7e9863205f1df871
parent413bef689963c44e7131b18eb2443353ad3d7735
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: 28dd7328791d ("exfat: add file operations")
Cc: stable@vger.kernel.org # v5.7
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/exfat/file.c