]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: smbd: fix dma_unmap_sg() nents
authorThomas Fourier <fourier.thomas@gmail.com>
Wed, 28 Jan 2026 22:20:21 +0000 (17:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2026 15:44:19 +0000 (16:44 +0100)
commit6ececffd3e9fe93a87738625dc0671165d27bf96
tree2e42d08015f887146641ef655c754f8cef0f258f
parent8859e336d233e61a4c40d40dc6a9f21e8b9b719c
ksmbd: smbd: fix dma_unmap_sg() nents

[ Upstream commit 98e3e2b561bc88f4dd218d1c05890672874692f6 ]

The dma_unmap_sg() functions should be called with the same nents as the
dma_map_sg(), not the value the map function returned.

Fixes: 0626e6641f6b ("cifsd: add server handler for central processing and tranport layers")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
[ Context ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/server/transport_rdma.c