]> git.itanic.dy.fi Git - linux-stable/commit
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:32:27 +0000 (13:32 +0200)
commit0505f8c628b9e0aef0140d3590e993099425cbdc
treef404d4ac91edb60bb18d07551dc50446681d9a22
parentb092186eb9e689e56edecb32048bc51bc413f3c0
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