]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/client: zero-initialize stack-allocated cifs_open_info_data
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Thu, 9 Jul 2026 02:57:02 +0000 (10:57 +0800)
committerSteve French <stfrench@microsoft.com>
Thu, 9 Jul 2026 12:55:55 +0000 (07:55 -0500)
commit8fce4cf4369c766a3293a05419500cbfde72e60d
treea1a50fddecded43b96dc0b32ccecefa0a92cc732
parent1f551e407bb49dce0bbd34ed6a499dad69e18020
smb/client: zero-initialize stack-allocated cifs_open_info_data

Stack-allocated cifs_open_info_data may contain random data.
This can make some fields have wrong value if they are not set later.

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/link.c
fs/smb/client/smb1ops.c
fs/smb/client/smb2ops.c