cifs: add check for returning value of SMB2_close_init
authorAnastasia Belova <abelova@astralinux.ru>
Tue, 15 Nov 2022 14:27:01 +0000 (17:27 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Nov 2022 08:24:41 +0000 (09:24 +0100)
commit61404a182eb57649d3e55e73d7a40a629d87e50b
treecf76283add9b204b13c3937848ed65d254cd5ff8
parentd3233f4bf3ddd3fd2f24ef2cf5ad3ec796e4c13f
cifs: add check for returning value of SMB2_close_init

[ Upstream commit d520de6cb42e88a1d008b54f935caf9fc05951da ]

If the returning value of SMB2_close_init is an error-value,
exit the function.

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

Fixes: 352d96f3acc6 ("cifs: multichannel: move channel selection above transport layer")

Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/smb2ops.c