+++ /dev/null
-From b7ab9161cf5ddc42a288edf9d1a61f3bdffe17c7 Mon Sep 17 00:00:00 2001
-From: David Howells <dhowells@redhat.com>
-Date: Wed, 25 Jan 2023 14:02:13 +0000
-Subject: cifs: Fix oops due to uncleared server->smbd_conn in reconnect
-
-From: David Howells <dhowells@redhat.com>
-
-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>
----
- fs/cifs/smbdirect.c | 1 +
- 1 file changed, 1 insertion(+)
-
---- a/fs/cifs/smbdirect.c
-+++ b/fs/cifs/smbdirect.c
-@@ -1493,6 +1493,7 @@ void smbd_destroy(struct smbd_connection
- destroy_workqueue(info->workqueue);
- log_rdma_event(INFO, "rdma session destroyed\n");
- kfree(info);
-+ server->smbd_conn = NULL;
- }
-
- /*