diff options
author | Aurelien Aptel <aaptel@suse.com> | 2020-06-04 17:23:55 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-06-04 13:50:55 -0500 |
commit | 7c06514afd38ed7a4b83edfd39ab033c804b4cf3 (patch) | |
tree | 9bed20ebe6e9f8ebd700cf37e26ac009ade4a3a0 /fs/cifs/inode.c | |
parent | 8e84a61a9c5ce55c5707448bb3c2cc544fccaa21 (diff) | |
download | linux-7c06514afd38ed7a4b83edfd39ab033c804b4cf3.tar.gz linux-7c06514afd38ed7a4b83edfd39ab033c804b4cf3.tar.bz2 linux-7c06514afd38ed7a4b83edfd39ab033c804b4cf3.zip |
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/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index b94c6398da94..5416ff339401 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -447,7 +447,7 @@ cifs_sfu_type(struct cifs_fattr *fattr, const char *path, struct cifs_tcon *tcon; struct cifs_fid fid; struct cifs_open_parms oparms; - struct cifs_io_parms io_parms; + struct cifs_io_parms io_parms = {0}; char buf[24]; unsigned int bytes_read; char *pbuf; |