[PATCH 0/3] i2c: fix DMA channel leaks on probe error and remove

From: Shengzhuo Wei

Date: Thu Aug 27 2026 - 11:43:33 EST


Three I2C bus drivers request exclusive DMA channels before
registering their adapter, but none of them releases the channels on
the probe error path (the remove callback is not invoked after a
failed probe), and the at91 driver never releases them on remove
either. Same class as 777979e62711 ("i2c: mxs: fix DMA channel leak on
probe error"), which used devm_dma_request_chan() for mxs; here the
drivers own non-devm state, so the fixes release the channels
explicitly on the error paths.

The three drivers are otherwise unrelated; the series exists only
because the bug shape and the fix shape are identical.

---
Shengzhuo Wei (3):
i2c: at91: release DMA channels on remove and probe error
i2c: imx: release DMA channels on probe error
i2c: qcom-geni: release DMA channels on probe error

drivers/i2c/busses/i2c-at91-core.c | 3 +++
drivers/i2c/busses/i2c-at91-master.c | 12 +++++++++++-
drivers/i2c/busses/i2c-at91.h | 1 +
drivers/i2c/busses/i2c-imx.c | 2 ++
drivers/i2c/busses/i2c-qcom-geni.c | 4 +++-
5 files changed, 20 insertions(+), 2 deletions(-)
---
base-commit: 45c13f3f9e3bb15fd89ff2864c6f627a3b4b4229
change-id: 20260827-i2c-dma-channel-leak-b58522243736

Best regards,
--
Shengzhuo Wei <me@xxxxxxxx>