mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05:00
smb3: rc uninitialized in one fallocate path
Clang detected a problem with rc possibly being unitialized (when length is zero) in a recently added fallocate code path. Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
f2a26a3cff
commit
5ad4df56cd
1 changed files with 2 additions and 1 deletions
|
@ -3617,7 +3617,8 @@ static int smb3_simple_fallocate_write_range(unsigned int xid,
|
||||||
char *buf)
|
char *buf)
|
||||||
{
|
{
|
||||||
struct cifs_io_parms io_parms = {0};
|
struct cifs_io_parms io_parms = {0};
|
||||||
int rc, nbytes;
|
int nbytes;
|
||||||
|
int rc = 0;
|
||||||
struct kvec iov[2];
|
struct kvec iov[2];
|
||||||
|
|
||||||
io_parms.netfid = cfile->fid.netfid;
|
io_parms.netfid = cfile->fid.netfid;
|
||||||
|
|
Loading…
Add table
Reference in a new issue