From 887d13b8f82670c5d60152b417d3d138503b4140 Mon Sep 17 00:00:00 2001 From: Steve French Date: Fri, 14 Oct 2022 19:18:32 -0500 Subject: [PATCH] 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) Signed-off-by: Steve French --- fs/cifs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index cbd46ac59cd2f..a5c73c2af3a26 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c @@ -413,7 +413,7 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry, struct tcon_link *tlink; struct cifs_tcon *tcon; struct TCP_Server_Info *server; - struct cifs_fid fid; + struct cifs_fid fid = {}; struct cifs_pending_open open; __u32 oplock; struct cifsFileInfo *file_info; -- 2.39.5