android_kernel_xiaomi_sm7250/fs/cifs
Shyam Prasad N 4a31e05be4 cifs: return errors during session setup during reconnects
commit 8ea21823aa584b55ba4b861307093b78054b0c1b upstream.

During reconnects, we check the return value from
cifs_negotiate_protocol, and have handlers for both success
and failures. But if that passes, and cifs_setup_session
returns any errors other than -EACCES, we do not handle
that. This fix adds a handler for that, so that we don't
go ahead and try a tree_connect on a failed session.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-14 16:59:38 +02:00
..
asn1.c cifs: remove bogus debug code 2020-10-29 09:54:59 +01:00
cache.c
cifs_debug.c
cifs_debug.h
cifs_dfs_ref.c
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c CIFS: Fix a potencially linear read overflow 2021-09-22 11:47:54 +02:00
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c
cifsfs.c cifs: Check the IOCB_DIRECT flag, not O_DIRECT 2022-04-27 13:39:43 +02:00
cifsfs.h
cifsglob.h CIFS: Properly process SMB3 lease breaks 2020-10-01 13:14:29 +02:00
cifspdu.h
cifsproto.h
cifssmb.c
connect.c cifs: fix incorrect check for null pointer in header_assemble 2021-10-06 15:31:10 +02:00
dir.c cifs: report error instead of invalid when revalidating a dentry fails 2021-02-10 09:21:07 +01:00
dns_resolve.c
dns_resolve.h
export.c
file.c cifs: revalidate mapping when we open files for SMB1 POSIX 2021-04-10 13:21:19 +02:00
fscache.c
fscache.h
inode.c cifs: handle -EINTR in cifs_setattr 2020-11-05 11:08:44 +01:00
ioctl.c
Kconfig
link.c cifs: potential buffer overflow in handling symlinks 2022-04-20 09:12:49 +02:00
Makefile
misc.c CIFS: Properly process SMB3 lease breaks 2020-10-01 13:14:29 +02:00
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c
rfc1002pdu.h
sess.c cifs: fix wrong release in sess_alloc_buffer() failed path 2021-09-22 11:48:08 +02:00
smb1ops.c CIFS: Properly process SMB3 lease breaks 2020-10-01 13:14:29 +02:00
smb2file.c
smb2glob.h
smb2inode.c
smb2maperror.c
smb2misc.c cifs: Silently ignore unknown oplock break handle 2021-04-10 13:21:19 +02:00
smb2ops.c cifs: destage any unwritten data to the server before calling copychunk_write 2022-05-12 12:20:22 +02:00
smb2pdu.c cifs: return errors during session setup during reconnects 2022-06-14 16:59:38 +02:00
smb2pdu.h smb3: Fix out-of-bounds bug in SMB2_negotiate() 2021-02-10 09:21:07 +01:00
smb2proto.h
smb2status.h
smb2transport.c
smbdirect.c
smbdirect.h
smbencrypt.c
smberr.h
smbfsctl.h
trace.c
trace.h
transport.c cifs: Fix preauth hash corruption 2021-03-24 11:07:39 +01:00
winucase.c
xattr.c