]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: server: make sure we call ib_dma_unmap_single() only if we called ib_dma_map_sin...
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Aug 2025 12:15:51 +0000 (14:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:05:10 +0000 (12:05 +0200)
commitdf6f074996055e63e723672b3e765b9d01a6d5e6
treee3edb7a443314409b4e9e064925ea348c1decdbf
parent065a55b3af75ae115ee87f752a5a0768ca6b619e
smb: server: make sure we call ib_dma_unmap_single() only if we called ib_dma_map_single already

[ Upstream commit afb4108c92898350e66b9a009692230bcdd2ac73 ]

In case of failures either ib_dma_map_single() might not be called yet
or ib_dma_unmap_single() was already called.

We should make sure put_recvmsg() only calls ib_dma_unmap_single() if needed.

Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Fixes: 0626e6641f6b ("cifsd: add server handler for central processing and tranport layers")
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/server/transport_rdma.c