Skip to content

Commit 625b60d

Browse files
author
Steve French
committed
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) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent f09bd69 commit 625b60d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry,
413413
struct tcon_link *tlink;
414414
struct cifs_tcon *tcon;
415415
struct TCP_Server_Info *server;
416-
struct cifs_fid fid;
416+
struct cifs_fid fid = {};
417417
struct cifs_pending_open open;
418418
__u32 oplock;
419419
struct cifsFileInfo *file_info;

0 commit comments

Comments
 (0)