]> git.ipfire.org Git - thirdparty/linux.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)
committerLeon Romanovsky <leon@kernel.org>
Tue, 30 Dec 2025 11:45:51 +0000 (06:45 -0500)
commitfcd431a9627f272b4c0bec445eba365fe2232a94
tree5f8fbf39acad9549a6caa4d0cf06fd35f920fa10
parent43bd09d5b750f700499ae8ec45fd41a4c48673e6
RDMA/bnxt_re: fix dma_free_coherent() pointer

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>
drivers/infiniband/hw/bnxt_re/qplib_res.c