public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] spi: imx: fix use-after-free on unbind
@ 2026-03-23 10:49 Johan Hovold
  2026-03-23 10:49 ` [PATCH 1/5] " Johan Hovold
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Johan Hovold @ 2026-03-23 10:49 UTC (permalink / raw)
  To: Mark Brown
  Cc: Frank Li, Sascha Hauer, Heiko Stuebner, Laxman Dewangan,
	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 related cleanups for tegre20-slink and the rockchip
driver.

Johan


Johan Hovold (5):
  spi: imx: fix use-after-free on unbind
  spi: imx: switch to managed controller allocation
  spi: tegra20-slink: switch to managed controller allocation
  spi: rockchip: fix controller deregistration
  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] 16+ messages in thread

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

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23 10:49 [PATCH 0/5] spi: imx: fix use-after-free on unbind Johan Hovold
2026-03-23 10:49 ` [PATCH 1/5] " Johan Hovold
2026-03-23 11:00   ` Marc Kleine-Budde
2026-03-23 11:20     ` Johan Hovold
2026-03-23 11:57       ` Marc Kleine-Budde
2026-03-23 13:59         ` Johan Hovold
2026-03-23 14:47           ` Marc Kleine-Budde
2026-03-23 15:41             ` Johan Hovold
2026-03-23 10:49 ` [PATCH 2/5] spi: imx: switch to managed controller allocation Johan Hovold
2026-03-23 10:49 ` [PATCH 3/5] spi: tegra20-slink: " Johan Hovold
2026-03-23 10:49 ` [PATCH 4/5] spi: rockchip: fix controller deregistration Johan Hovold
2026-03-23 16:35   ` Mark Brown
2026-03-23 16:51     ` Johan Hovold
2026-03-23 17:02       ` Mark Brown
2026-03-24  8:09         ` Johan Hovold
2026-03-23 10:49 ` [PATCH 5/5] spi: rockchip: switch to managed controller allocation Johan Hovold

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