cifs: lease key is uninitialized in smb1 paths
authorSteve French <stfrench@microsoft.com>
Sat, 15 Oct 2022 00:18:32 +0000 (19:18 -0500)
committerSteve French <stfrench@microsoft.com>
Sat, 15 Oct 2022 15:05:53 +0000 (10:05 -0500)
commit625b60d4f9517903ad499633776825e67fdb0c16
treeec9acbbed2b44b9ae45a8f07268d7c2d5dfeb748
parentf09bd695af3b8ab46fc24e5d6954a24104c38387
cifs: lease key is uninitialized in smb1 paths

It is cleaner to set lease key to zero in the places where leases are not
supported (smb1 can not return lease keys so the field was uninitialized).

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