Skip to content
Commit 99dbc39c authored by Ekaterina Esina's avatar Ekaterina Esina Committed by Greg Kroah-Hartman
Browse files

cifs: fix check of rc in function generate_smb3signingkey



[ Upstream commit 181724fc ]

Remove extra check after condition, add check after generating key
for encryption. The check is needed to return non zero rc before
rewriting it with generating key for decryption.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Reviewed-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
Fixes: d70e9fa5 ("cifs: try opening channels after mounting")
Signed-off-by: default avatarEkaterina Esina <eesina@astralinux.ru>
Co-developed-by: default avatarAnastasia Belova <abelova@astralinux.ru>
Signed-off-by: default avatarAnastasia Belova <abelova@astralinux.ru>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e5a0ef02
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment