[PATCH 0/5] spi: imx: fix use-after-free on unbind
From: Johan Hovold
Date: Mon Mar 23 2026 - 07:01:45 EST
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