aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorAlessandro Zanni <[email protected]>2024-10-17 12:05:51 +0000
committerChristian Brauner <[email protected]>2024-10-17 13:33:43 +0000
commit15f34347481648a567db67fb473c23befb796af5 (patch)
treef2d10d4b9f9f1c67abbba38bb53381c188ee5028 /drivers/fpga/tests/fpga-mgr-test.c
parentfs: don't try and remove empty rbtree node (diff)
downloadkernel-15f34347481648a567db67fb473c23befb796af5.tar.gz
kernel-15f34347481648a567db67fb473c23befb796af5.zip
fs: Fix uninitialized value issue in from_kuid and from_kgid
ocfs2_setattr() uses attr->ia_mode, attr->ia_uid and attr->ia_gid in a trace point even though ATTR_MODE, ATTR_UID and ATTR_GID aren't set. Initialize all fields of newattrs to avoid uninitialized variables, by checking if ATTR_MODE, ATTR_UID, ATTR_GID are initialized, otherwise 0. Reported-by: [email protected] Closes: https://syzkaller.appspot.com/bug?extid=6c55f725d1bdc8c52058 Signed-off-by: Alessandro Zanni <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions