[PATCH] i2c: at91: release DMA channels when probe defers

Andi Shyti andi.shyti at kernel.org
Thu Oct 1 15:36:31 PDT 2026


Hi Hongjian,

On Wed, Sep 30, 2026 at 12:43:40AM +0800, Hongjian Dai wrote:
> at91_twi_probe_master() can return -EPROBE_DEFER from
> at91_init_twi_recovery_info() after at91_twi_configure_dma() has already
> claimed the tx/rx DMA channels. at91_twi_probe() then returns without
> releasing them, and since dma_request_chan() is not devres-managed the
> channels leak on every deferred probe attempt.
> 
> Release the channels before deferring the probe.
> 
> Fixes: f7eeb1af8537 ("i2c: at91: release DMA channels on remove and probe error")
> Assisted-by: LLM
> Signed-off-by: Hongjian Dai <daihongjian at kylinsec.com.cn>

pushed to i2c/i2c-fixes.

Thanks,
Andi



More information about the linux-arm-kernel mailing list