diff --git a/fs/file_attr.c b/fs/file_attr.c index 13cdb31a3e94..4f514e487e35 100644 --- a/fs/file_attr.c +++ b/fs/file_attr.c @@ -413,6 +413,7 @@ SYSCALL_DEFINE5(file_getattr, int, dfd, const char __user *, filename, return error; } + memset(&fa, 0, sizeof(struct file_kattr)); error = vfs_fileattr_get(filepath.dentry, &fa); if (error == -ENOIOCTLCMD || error == -ENOTTY) error = -EOPNOTSUPP;