smb3: rc uninitialized in one fallocate path
authorSteve French <stfrench@microsoft.com>
Mon, 26 Jul 2021 21:22:55 +0000 (16:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 11:22:20 +0000 (13:22 +0200)
commitc8b7cfa674ee18dcef601427c07aad987e4195a3
tree25937775ea6bb827463fc874a2983c3ba4de7dbc
parent8cfdd039ca186adc332170818940f287d29c921c
smb3: rc uninitialized in one fallocate path

[ Upstream commit 5ad4df56cd2158965f73416d41fce37906724822 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/smb2ops.c