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)
commit2bff0659338e58a3a24698a35e7dcb2b62199ba4
tree1c07a17d31a087e5e1cf535267ad96e4967816b9
parent625b60d4f9517903ad499633776825e67fdb0c16
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