]> 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)
commit887d13b8f82670c5d60152b417d3d138503b4140
treeec9acbbed2b44b9ae45a8f07268d7c2d5dfeb748
parent0156c6aedd435b56bded76637f663147e0d4f8a6
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