]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: let send_done() cleanup before calling smbd_disconnect_rdma_connection()
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Aug 2025 12:10:12 +0000 (14:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:12 +0000 (16:28 +0200)
commit429112e9709b96e78eaf05851bc9f27f04599273
tree9e2ae4c791e4e0119b3f728f77af2d28f7eaaf51
parent19849010c9e18d54375091864a3313fc328d6186
smb: client: let send_done() cleanup before calling smbd_disconnect_rdma_connection()

commit 5349ae5e05fa37409fd48a1eb483b199c32c889b upstream.

We should call ib_dma_unmap_single() and mempool_free() before calling
smbd_disconnect_rdma_connection().

And smbd_disconnect_rdma_connection() needs to be the last function to
call as all other state might already be gone after it returns.

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Fixes: f198186aa9bb ("CIFS: SMBD: Establish SMB Direct connection")
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/smbdirect.c