public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] spi: imx: fix use-after-free on unbind
@ 2026-03-24  8:23 Johan Hovold
  2026-03-24  8:23 ` [PATCH v2 1/5] " Johan Hovold
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Johan Hovold @ 2026-03-24  8:23 UTC (permalink / raw)
  To: Mark Brown
  Cc: Frank Li, Sascha Hauer, Heiko Stuebner, Laxman Dewangan,
	Marc Kleine-Budde, linux-spi, linux-kernel, Johan Hovold

The SPI subsystem frees the controller and any subsystem allocated
driver data as part of deregistration (unless the allocation is device
managed).

This series fixes the IMX driver that got this wrong and then converts
it to use device managed allocation.

Included are also a (preparatory) deregistration fix for the rockchip
driver and related cleanups for the tegre20-slink and rockchip drivers
that both take a controller reference during unbind.

Johan


Changes in v2
 - add stable tag to rockchip fix
 - move rockchip fix before the cleanups


Johan Hovold (5):
  spi: imx: fix use-after-free on unbind
  spi: rockchip: fix controller deregistration
  spi: imx: switch to managed controller allocation
  spi: tegra20-slink: switch to managed controller allocation
  spi: rockchip: switch to managed controller allocation

 drivers/spi/spi-imx.c           | 41 +++++++++++----------------------
 drivers/spi/spi-rockchip.c      | 40 +++++++++++++-------------------
 drivers/spi/spi-tegra20-slink.c | 26 ++++++++-------------
 3 files changed, 40 insertions(+), 67 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-03-24 19:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-24  8:23 [PATCH v2 0/5] spi: imx: fix use-after-free on unbind Johan Hovold
2026-03-24  8:23 ` [PATCH v2 1/5] " Johan Hovold
2026-03-24  8:23 ` [PATCH v2 2/5] spi: rockchip: fix controller deregistration Johan Hovold
2026-03-24  8:23 ` [PATCH v2 3/5] spi: imx: switch to managed controller allocation Johan Hovold
2026-03-24  8:23 ` [PATCH v2 4/5] spi: tegra20-slink: " Johan Hovold
2026-03-24  8:23 ` [PATCH v2 5/5] spi: rockchip: " Johan Hovold
2026-03-24 14:26 ` [PATCH v2 0/5] spi: imx: fix use-after-free on unbind Mark Brown

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