aboutsummaryrefslogtreecommitdiff
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
authorGravatar Alexander Potapenko <glider@google.com> 2022-11-21 12:21:34 +0100
committerGravatar Andrew Morton <akpm@linux-foundation.org> 2023-02-02 22:50:06 -0800
commit74b7046d329770ea9dd105ca321ad6abb91bdbbb (patch)
tree3d37d6945298fea71baeaaaaa4b5b576ad493d53 /fs/ext4/inode.c
parentfs: hfs: initialize fsdata in hfs_file_truncate() (diff)
downloadlinux-74b7046d329770ea9dd105ca321ad6abb91bdbbb.tar.gz
linux-74b7046d329770ea9dd105ca321ad6abb91bdbbb.tar.bz2
linux-74b7046d329770ea9dd105ca321ad6abb91bdbbb.zip
fs: hfsplus: initialize fsdata in hfsplus_file_truncate()
When aops->write_begin() does not initialize fsdata, KMSAN may report an error passing the latter to aops->write_end(). Fix this by unconditionally initializing fsdata. Link: https://lkml.kernel.org/r/20221121112134.407362-5-glider@google.com Signed-off-by: Alexander Potapenko <glider@google.com> Suggested-by: Eric Biggers <ebiggers@kernel.org> Cc: Andreas Dilger <adilger.kernel@dilger.ca> Cc: Chao Yu <chao@kernel.org> Cc: Jaegeuk Kim <jaegeuk@kernel.org> Cc: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/ext4/inode.c')
0 files changed, 0 insertions, 0 deletions