VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Steve French <stfrench@microsoft.com> 2021-07-26 16:22:55 -0500 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-08-12 13:32:27 +0200 commit: 0505f8c628b9e0aef0140d3590e993099425cbdc parent: b092186eb9e689e56edecb32048bc51bc413f3c0
Commit Summary:
smb3: rc uninitialized in one fallocate path
Diffstat:
1 file changed, 2 insertions, 1 deletion
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 398c941e3897..f77156187a0a 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -3613,7 +3613,8 @@ static int smb3_simple_fallocate_write_range(unsigned int xid,
 					     char *buf)
 {
 	struct cifs_io_parms io_parms = {0};
-	int rc, nbytes;
+	int nbytes;
+	int rc = 0;
 	struct kvec iov[2];
 
 	io_parms.netfid = cfile->fid.netfid;