[lvc-project] [PATCH] cifs: fix check of rc in function generate_smb3signingkey
Paulo Alcantara
pc at manguebit.com
Mon Nov 13 21:49:41 MSK 2023
Ekaterina Esina <eesina at astralinux.ru> writes:
> Remove extra check after condition, add check after generating key
> for encryption. The check is needed to return non zero rc before
> rewriting it with generating key for decryption.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: d70e9fa55884 ("cifs: try opening channels after mounting")
> Signed-off-by: Ekaterina Esina <eesina at astralinux.ru>
> Co-developed-by: Anastasia Belova <abelova at astralinux.ru>
> Signed-off-by: Anastasia Belova <abelova at astralinux.ru>
> ---
> fs/smb/client/smb2transport.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
Reviewed-by: Paulo Alcantara (SUSE) <pc at manguebit.com>
More information about the lvc-project
mailing list