]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: add check for returning value of SMB2_set_info_init
authorAnastasia Belova <abelova@astralinux.ru>
Wed, 16 Nov 2022 14:10:27 +0000 (17:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:16 +0000 (17:42 +0100)
commitaf609323847258637fded28b96a9991c98cbc13e
tree580b50287eb80cccabd769a733c8013c85c536db
parent149b84b7523315902d9322e20343ab3ab8813043
cifs: add check for returning value of SMB2_set_info_init

[ Upstream commit 690e4be0671244129420409b502253a67a082b21 ]

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

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

Fixes: 25da97c6a58f ("cifs: use a compound for setting an xattr")
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