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)
committerSteve French <stfrench@microsoft.com>
Wed, 16 Nov 2022 18:24:26 +0000 (12:24 -0600)
commita51e5d293dd1c2e7bf6f7be788466cd9b5d280fb
tree587c81ed3edf4b55d1ad47b60cc234f22ddc7994
parent92bbd67a55fee50743b42825d1c016e7fd5c79f9
cifs: add check for returning value of SMB2_set_info_init

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

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