]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ksmbd: smbd: fix dma_unmap_sg() nents
authorThomas Fourier <fourier.thomas@gmail.com>
Fri, 9 Jan 2026 10:38:39 +0000 (11:38 +0100)
committerSteve French <stfrench@microsoft.com>
Fri, 23 Jan 2026 00:13:44 +0000 (18:13 -0600)
commit98e3e2b561bc88f4dd218d1c05890672874692f6
treee72ffcd84194da5cbb4b89af949a08520061ef46
parent24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7
ksmbd: smbd: fix dma_unmap_sg() nents

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