]> git.ipfire.org Git - thirdparty/linux.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)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Aug 2025 19:09:57 +0000 (14:09 -0500)
commitafb4108c92898350e66b9a009692230bcdd2ac73
tree14b72c7c60fee4600f4f0364fb4279b9126db6ef
parent01027a62b508c48c762096f347de925eedcbd008
smb: server: make sure we call ib_dma_unmap_single() only if we called ib_dma_map_single already

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>
fs/smb/server/transport_rdma.c