]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntb: Store original DMA address for future release
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 1 May 2026 06:35:05 +0000 (09:35 +0300)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 8 May 2026 20:28:19 +0000 (22:28 +0200)
commitda6d997ac556479c112554ab5d95cbd04683eb11
tree7295627fbcaca576475457de7d0dd66caf74ad7d
parent254f49634ee16a731174d2ae34bc50bd5f45e731
ntb: Store original DMA address for future release

The DMA API requires that dma_free_attrs receive the exact dma_handle
originally returned by the allocation function. Do not modify it.

Fixes: fc5d1829f9bf ("NTB: transport: Try harder to alloc an aligned MW buffer")
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-1-8dbac75cd501@nvidia.com
drivers/ntb/ntb_transport.c