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)
committerSteve French <stfrench@microsoft.com>
Tue, 15 Nov 2022 18:57:54 +0000 (12:57 -0600)
commitd520de6cb42e88a1d008b54f935caf9fc05951da
treea40b02b7cecea9d072f5be7ddb1c44142fae6d47
parent1dcdf5f5b2137185cbdd5385f29949ab3da4f00c
cifs: add check for returning value of SMB2_close_init

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>
fs/cifs/smb2ops.c