Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] i2c: fix DMA channel leaks on probe error and remove
@ 2026-08-27 15:43 Shengzhuo Wei
  2026-08-27 15:43 ` [PATCH 1/3] i2c: at91: release DMA channels on remove and probe error Shengzhuo Wei
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Shengzhuo Wei @ 2026-08-27 15:43 UTC (permalink / raw)
  To: Codrin Ciubotariu, Andi Shyti, Nicolas Ferre, Alexandre Belloni,
	Claudiu Beznea, Wolfram Sang, Ludovic Desroches, Oleksij Rempel,
	Pengutronix Kernel Team, Frank Li, Sascha Hauer, Fabio Estevam,
	Yao Yuan, Mukesh Kumar Savaliya, Viken Dadhaniya, Bjorn Andersson,
	Vinod Koul, Konrad Dybcio, Praveen Talari
  Cc: linux-i2c, linux-arm-kernel, linux-kernel, imx, linux-arm-msm,
	stable, Shengzhuo Wei

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@cherr.cc>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-27 16:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-27 15:43 [PATCH 0/3] i2c: fix DMA channel leaks on probe error and remove Shengzhuo Wei
2026-08-27 15:43 ` [PATCH 1/3] i2c: at91: release DMA channels on remove and probe error Shengzhuo Wei
2026-08-27 15:43 ` [PATCH 2/3] i2c: imx: release DMA channels on " Shengzhuo Wei
2026-08-27 16:01   ` Frank Li
2026-08-27 15:43 ` [PATCH 3/3] i2c: qcom-geni: " Shengzhuo Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox