]> 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)
commit15e379caba6440549c4aeffcbc8220c8c26119de
tree587c81ed3edf4b55d1ad47b60cc234f22ddc7994
parent2d598e82f43de08e76026f8d2e4b615e5deafacd
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: a14e6f7f4ff8 ("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