]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: lease key is uninitialized in two additional functions when smb1
authorSteve French <stfrench@microsoft.com>
Sat, 15 Oct 2022 01:00:32 +0000 (20:00 -0500)
committerSteve French <stfrench@microsoft.com>
Sat, 15 Oct 2022 15:05:53 +0000 (10:05 -0500)
commitc2cdadf8268d0c7572e79d1b5dbc11fd461393fd
tree1c07a17d31a087e5e1cf535267ad96e4967816b9
parent887d13b8f82670c5d60152b417d3d138503b4140
cifs: lease key is uninitialized in two additional functions when smb1

cifs_open and _cifsFileInfo_put also end up with lease_key uninitialized
in smb1 mounts.  It is cleaner to set lease key to zero in these
places where leases are not supported (smb1 can not return lease keys
so the field was uninitialized).

Addresses-Coverity: 1514207 ("Uninitialized scalar variable")
Addresses-Coverity: 1514331 ("Uninitialized scalar variable")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/file.c