On Thu, Nov 26, 2026 at 12:21 AM Thomas Fourier <[email protected]> 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 <[email protected]>
Just remove the dead code instead. -Olof
