Re: [PATCH] ata: pata_pxa: Fix DMA channel leak on probe error

From: Damien Le Moal

Date: Fri Jun 26 2026 - 17:46:20 EST


On 6/25/26 23:18, Wentao Liang wrote:
> When dmaengine_slave_config() fails, the DMA channel acquired by
> dma_request_chan() is not released before returning the error,
> leaking the channel reference.
>
> Fix by adding dma_release_channel() in the error path.
>
> The ata_host_activate() error path already correctly releases the
> DMA channel.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 88622d80af82 ("ata: pata_pxa: dmaengine conversion")
> Signed-off-by: Wentao Liang <vulab@xxxxxxxxxxx>

Applied to for-7.2-fixes. Thanks!

--
Damien Le Moal
Western Digital Research