]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/bnxt_re: fix dma_free_coherent() pointer
authorThomas Fourier <fourier.thomas@gmail.com>
Tue, 30 Dec 2025 08:51:21 +0000 (09:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:16:52 +0000 (10:16 +0100)
commit4f6e92b7c2a7952eb23a119104a42964f4c6562b
treee01f6bddb0b7682c840e3b8f8a9ccc1adba0b247
parente4ee11c00d2396991958dbffb430833bfaa451c8
RDMA/bnxt_re: fix dma_free_coherent() pointer

[ Upstream commit fcd431a9627f272b4c0bec445eba365fe2232a94 ]

The dma_alloc_coherent() allocates a dma-mapped buffer, pbl->pg_arr[i].
The dma_free_coherent() should pass the same buffer to
dma_free_coherent() and not page-aligned.

Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://patch.msgid.link/20251230085121.8023-2-fourier.thomas@gmail.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/bnxt_re/qplib_res.c