smb3: rc uninitialized in one fallocate path
authorSteve French <stfrench@microsoft.com>
Mon, 26 Jul 2021 21:22:55 +0000 (16:22 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 27 Jul 2021 03:35:46 +0000 (22:35 -0500)
commit5ad4df56cd2158965f73416d41fce37906724822
tree9a3cd1fbd11d25c82e4b2a23cdf1825fd7e2de5c
parentf2a26a3cff27dfa456fef386fe5df56dcb4b47b6
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>
fs/cifs/smb2ops.c