]> 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)
committerSteve French <stfrench@microsoft.com>
Wed, 16 Nov 2022 18:24:26 +0000 (12:24 -0600)
commit690e4be0671244129420409b502253a67a082b21
tree587c81ed3edf4b55d1ad47b60cc234f22ddc7994
parenta0629e5725c169977fd352d39ccedf452e2fb34e
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: 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>
fs/cifs/smb2ops.c