]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntb: Use consistent DMA attributes when freeing DMA mappings
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 1 May 2026 06:35:06 +0000 (09:35 +0300)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 8 May 2026 20:28:19 +0000 (22:28 +0200)
commit9d625aa2ebd445868955719e0abcf695b43f9318
treeff3c7028a74a45f5a2dd443dc73ef39795604745
parentda6d997ac556479c112554ab5d95cbd04683eb11
ntb: Use consistent DMA attributes when freeing DMA mappings

The counterpart of dma_alloc_attrs() is dma_free_attrs(), which must
receive the same DMA attributes used during allocation. The code
previously used dma_free_coherent(), which does not accept or apply any
DMA attributes.

Fixes: 061a785a114f ("ntb: Force physically contiguous allocation of rx ring buffers")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20260501-dma-attrs-debug-v2-2-8dbac75cd501@nvidia.com
drivers/ntb/ntb_transport.c