WSL2-Linux-Kernel/fs/cifs
David Howells b7ab9161cf cifs: Fix oops due to uncleared server->smbd_conn in reconnect
In smbd_destroy(), clear the server->smbd_conn pointer after freeing the
smbd_connection struct that it points to so that reconnection doesn't get
confused.

Fixes: 8ef130f9ec ("CIFS: SMBD: Implement function to destroy a SMB Direct connection")
Cc: stable@vger.kernel.org
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Acked-by: Tom Talpey <tom@talpey.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Long Li <longli@microsoft.com>
Cc: Pavel Shilovsky <piastryyy@gmail.com>
Cc: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
2023-01-25 09:57:48 -06:00
..
Kconfig
Makefile cifs: get rid of mount options string parsing 2022-12-19 08:03:11 -06:00
asn1.c
cached_dir.c
cached_dir.h
cifs_debug.c cifs: share dfs connections and supers 2022-12-19 08:03:12 -06:00
cifs_debug.h
cifs_dfs_ref.c cifs: use origin fullpath for automounts 2022-12-19 08:03:12 -06:00
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_spnego_negtokeninit.asn1
cifs_swn.c
cifs_swn.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c cifs: fix potential memory leaks in session setup 2023-01-10 23:24:37 -06:00
cifsfs.c cifs: get rid of mount options string parsing 2022-12-19 08:03:11 -06:00
cifsfs.h cifs: update internal module number 2022-12-19 08:04:50 -06:00
cifsglob.h cifs: fix refresh of cached referrals 2022-12-19 08:03:12 -06:00
cifspdu.h
cifsproto.h cifs: use origin fullpath for automounts 2022-12-19 08:03:12 -06:00
cifsroot.c
cifssmb.c
connect.c cifs: do not query ifaces on smb1 mounts 2023-01-10 23:24:14 -06:00
dfs.c cifs: protect access of TCP_Server_Info::{dstaddr,hostname} 2023-01-04 09:06:53 -06:00
dfs.h cifs: use origin fullpath for automounts 2022-12-19 08:03:12 -06:00
dfs_cache.c cifs: remove unused function 2023-01-18 14:49:51 -06:00
dfs_cache.h cifs: remove unused function 2023-01-18 14:49:51 -06:00
dir.c cifs: use origin fullpath for automounts 2022-12-19 08:03:12 -06:00
dns_resolve.c cifs: set resolved ip in sockaddr 2022-12-19 08:03:11 -06:00
dns_resolve.h cifs: set resolved ip in sockaddr 2022-12-19 08:03:11 -06:00
export.c
file.c
fs_context.c cifs: share dfs connections and supers 2022-12-19 08:03:12 -06:00
fs_context.h cifs: share dfs connections and supers 2022-12-19 08:03:12 -06:00
fscache.c
fscache.h
inode.c cifs: reduce roundtrips on create/qinfo requests 2022-12-19 08:03:11 -06:00
ioctl.c
link.c cifs: Fix uninitialized memory read for smb311 posix symlink create 2023-01-12 09:51:48 -06:00
misc.c cifs: protect access of TCP_Server_Info::{dstaddr,hostname} 2023-01-04 09:06:53 -06:00
netlink.c
netlink.h
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c
rfc1002pdu.h
sess.c cifs: fix potential memory leaks in session setup 2023-01-10 23:24:37 -06:00
smb1ops.c cifs: fix file info setting in cifs_open_file() 2023-01-09 13:47:02 -06:00
smb2file.c cifs: don't leak -ENOMEM in smb2_open_file() 2022-12-19 08:04:41 -06:00
smb2glob.h
smb2inode.c cifs: reduce roundtrips on create/qinfo requests 2022-12-19 08:03:11 -06:00
smb2maperror.c
smb2misc.c
smb2ops.c cifs: fix interface count calculation during refresh 2023-01-04 23:18:07 -06:00
smb2pdu.c cifs: do not include page data when checking signature 2023-01-18 14:44:30 -06:00
smb2pdu.h
smb2proto.h
smb2status.h
smb2transport.c
smbdirect.c cifs: Fix oops due to uncleared server->smbd_conn in reconnect 2023-01-25 09:57:48 -06:00
smbdirect.h
smbencrypt.c
smberr.h
trace.c
trace.h
transport.c
unc.c
winucase.c
xattr.c