summaryrefslogtreecommitdiff
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorAurelien Aptel <aaptel@suse.com>2020-06-04 18:23:55 +0300
committerSteve French <stfrench@microsoft.com>2020-06-04 21:50:55 +0300
commit7c06514afd38ed7a4b83edfd39ab033c804b4cf3 (patch)
tree9bed20ebe6e9f8ebd700cf37e26ac009ade4a3a0 /fs/cifs/smb2ops.c
parent8e84a61a9c5ce55c5707448bb3c2cc544fccaa21 (diff)
downloadlinux-7c06514afd38ed7a4b83edfd39ab033c804b4cf3.tar.xz
cifs: multichannel: always zero struct cifs_io_parms
SMB2_read/SMB2_write check and use cifs_io_parms->server, which might be uninitialized memory. This change makes all callers zero-initialize the struct. Signed-off-by: Aurelien Aptel <aaptel@suse.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r--fs/cifs/smb2ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index dec055d7c2f4..49c5c80f5d36 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -4584,7 +4584,7 @@ smb2_make_node(unsigned int xid, struct inode *inode,
struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
int rc = -EPERM;
FILE_ALL_INFO *buf = NULL;
- struct cifs_io_parms io_parms;
+ struct cifs_io_parms io_parms = {0};
__u32 oplock = 0;
struct cifs_fid fid;
struct cifs_open_parms oparms;