]> 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:14:37 +0000 (10:14 +0100)
commit29abf51fdf77fb8fe079401aea27cdd20479f661
tree9f81a460bb5d1941851380bd4198d0456a30c617
parentff552378e80df3888c8b0a871f4cae75c57bb944
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