]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit152958019375295494d04d604be87e8742178c60
treeec9acbbed2b44b9ae45a8f07268d7c2d5dfeb748
parent587dd0b8975aa95b009c60a5ebc1543cab03f412
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