Re: [PATCH 2/2] cifs: check returned value for error

From: Paulo Alcantara
Date: Tue Oct 04 2022 - 15:09:04 EST


Muhammad Usama Anjum <usama.anjum@xxxxxxxxxxxxx> writes:

> smb311_decode_neg_context() can return error. Its return value should be
> checked for errors.
>
> Signed-off-by: Muhammad Usama Anjum <usama.anjum@xxxxxxxxxxxxx>
> ---
> fs/cifs/smb2pdu.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
> index 2bf43c892ae6..c6e37352dbe1 100644

This patch doesn't apply in Steve's for-next branch[1]. If it still
makes sense, please rebase and resend.

[1] git://git.samba.org/sfrench/cifs-2.6.git