Re: [PATCH] powerpc/pasemi: Fix pasemi_dma_free_buf()
From: Olof Johansson
Date: Thu Nov 26 2026 - 16:35:14 EST
On Thu, Nov 26, 2026 at 12:21 AM Thomas Fourier
<fourier.thomas@xxxxxxxxx> wrote:
>
> dma_free_coherent() is called with the wrong arguments. The two last
> arguments must be the virtual address and the DMA address but the
> DMA address and the allocation flags are passed. If this function were
> called, it would call kfree() on a DMA address and dma_unmap() on the
> allocation flag.
>
> Add the buffer argument to pasemi_dma_free_buf() and pass the right
> arguments to dma_free_coherent().
>
> Fixes: 8ee9d8577935 ("pasemi: DMA engine management library")
> Signed-off-by: Thomas Fourier <fourier.thomas@xxxxxxxxx>
Just remove the dead code instead.
-Olof