David Howells 4b83bc6f87 cifs: Fix oops due to uncleared server->smbd_conn in reconnect
commit b7ab9161cf5ddc42a288edf9d1a61f3bdffe17c7 upstream.

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: 8ef130f9ec27 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-01 08:27:23 +01:00
..
2021-06-20 21:28:17 -05:00
2023-01-12 11:58:41 +01:00
2023-01-12 11:58:41 +01:00
2020-06-01 00:10:18 -05:00
2023-01-12 11:58:56 +01:00
2022-10-29 10:12:56 +02:00
2022-10-29 10:12:56 +02:00
2022-02-23 12:03:14 +01:00
2023-01-12 11:58:41 +01:00
2023-01-12 11:58:41 +01:00
2019-01-24 09:37:33 -06:00
2021-04-25 16:28:23 -05:00