OpenCloudOS-Kernel/fs/smb/client
Steve French 824c15ad09 smb3: add missing null server pointer check
commit 45be0882c5f91e1b92e645001dd1a53b3bd58c97 upstream.

Address static checker warning in cifs_ses_get_chan_index():
    warn: variable dereferenced before check 'server'
To be consistent, and reduce risk, we should add another check
for null server pointer.

Fixes: 88675b22d34e ("cifs: do not search for channel if server is terminating")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-01 13:35:03 +01:00
..
Kconfig fs/smb/client: Use common code in client 2023-08-30 08:55:52 -05:00
Makefile smb: client: get rid of dfs code dep in namespace.c 2023-08-20 16:05:50 -05:00
asn1.c
cached_dir.c cifs: helper function to check replayable error codes 2024-03-01 13:34:49 +01:00
cached_dir.h smb: client: make laundromat a delayed worker 2023-10-12 09:41:04 -05:00
cifs_debug.c cifs: handle cases where a channel is closed 2024-01-31 16:18:48 -08:00
cifs_debug.h
cifs_fs_sb.h
cifs_ioctl.h smb3: allow dumping session and tcon id to improve stats analysis and debugging 2023-11-28 17:20:09 +00:00
cifs_spnego.c cifs: spnego: add ';' in HOST_KEY_LEN 2023-11-28 17:19:54 +00:00
cifs_spnego.h
cifs_spnego_negtokeninit.asn1
cifs_swn.c
cifs_swn.h
cifs_unicode.c fs/smb/client: Use common code in client 2023-08-30 08:55:52 -05:00
cifs_unicode.h fs/smb/client: Use common code in client 2023-08-30 08:55:52 -05:00
cifsacl.c
cifsacl.h
cifsencrypt.c smb: Work around Clang __bdos() type confusion 2024-03-01 13:34:49 +01:00
cifsfs.c cifs: Fix flushing, invalidation and file size with FICLONE 2023-12-13 18:45:34 +01:00
cifsfs.h cifs: update internal module version number for cifs.ko 2023-09-07 00:06:04 -05:00
cifsglob.h smb: client: increase number of PDUs allowed in a compound request 2024-03-01 13:34:52 +01:00
cifspdu.h smb: client, common: fix fortify warnings 2024-01-20 11:51:38 +01:00
cifsproto.h smb: client: fix hardlinking of reparse points 2024-02-05 20:14:17 +00:00
cifsroot.c
cifssmb.c smb: client: fix hardlinking of reparse points 2024-02-05 20:14:17 +00:00
connect.c cifs: handle cases where multiple sessions share connection 2024-03-01 13:34:56 +01:00
dfs.c cifs: change tcon status when need_reconnect is set on it 2024-03-01 13:34:56 +01:00
dfs.h smb: client: get rid of dfs code dep in namespace.c 2023-08-20 16:05:50 -05:00
dfs_cache.c smb: client: ensure to try all targets when finding nested links 2023-08-20 16:05:50 -05:00
dfs_cache.h smb: client: ensure to try all targets when finding nested links 2023-08-20 16:05:50 -05:00
dir.c smb: client: get rid of dfs naming in automount code 2023-08-20 16:05:50 -05:00
dns_resolve.c
dns_resolve.h
export.c
file.c cifs: change tcon status when need_reconnect is set on it 2024-03-01 13:34:56 +01:00
fs_context.c smb3: clarify mount warning 2024-03-01 13:34:57 +01:00
fs_context.h smb: client: fix mount when dns_resolver key is not available 2023-11-28 17:20:09 +00:00
fscache.c smb: propagate error code of extract_sharename() 2023-08-30 23:38:49 -05:00
fscache.h client: convert to new timestamp accessors 2024-01-05 15:19:40 +01:00
inode.c smb: client: fix renaming of reparse points 2024-02-05 20:14:17 +00:00
ioctl.c smb3: allow dumping session and tcon id to improve stats analysis and debugging 2023-11-28 17:20:09 +00:00
link.c smb: client: fix hardlinking of reparse points 2024-02-05 20:14:17 +00:00
misc.c smb: client: fix OOB in smbCalcSize() 2024-01-01 12:42:43 +00:00
namespace.c smb: client: set correct id, uid and cruid for multiuser automounts 2024-02-23 09:25:13 +01:00
netlink.c
netlink.h
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c smb: client: set correct d_type for reparse points under DFS mounts 2024-03-01 13:34:56 +01:00
rfc1002pdu.h
sess.c smb3: add missing null server pointer check 2024-03-01 13:35:03 +01:00
smb1ops.c smb: client: set correct file type from NFS reparse points 2023-12-20 17:02:00 +01:00
smb2file.c
smb2glob.h
smb2inode.c smb: client: fix hardlinking of reparse points 2024-02-05 20:14:17 +00:00
smb2maperror.c smb3: remove duplicate error mapping 2023-09-20 16:04:51 -05:00
smb2misc.c smb: client: fix potential OOB in smb2_dump_detail() 2024-01-20 11:51:46 +01:00
smb2ops.c cifs: fix underflow in parse_server_interfaces() 2024-02-23 09:24:58 +01:00
smb2pdu.c smb: client: set correct d_type for reparse points under DFS mounts 2024-03-01 13:34:56 +01:00
smb2pdu.h smb: client, common: fix fortify warnings 2024-01-20 11:51:38 +01:00
smb2proto.h smb: client: fix hardlinking of reparse points 2024-02-05 20:14:17 +00:00
smb2status.h
smb2transport.c cifs: handle cases where a channel is closed 2024-01-31 16:18:48 -08:00
smbdirect.c smb3: Add dynamic trace points for RDMA (smbdirect) reconnect 2023-09-19 11:03:24 -05:00
smbdirect.h
smbencrypt.c
smberr.h
trace.c
trace.h smb3: Add dynamic trace points for RDMA (smbdirect) reconnect 2023-09-19 11:03:24 -05:00
transport.c smb: client: increase number of PDUs allowed in a compound request 2024-03-01 13:34:52 +01:00
unc.c
winucase.c
xattr.c smb3: fix caching of ctime on setxattr 2023-11-28 17:20:09 +00:00