diff options
| author | Johan Hovold <johan@kernel.org> | 2026-03-24 09:23:22 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-24 14:25:47 +0000 |
| commit | 1c78c2002380a1fe31bfb01a3d5f29809e55a096 (patch) | |
| tree | 2bd86325b18a91259269a19a87fd6a57582d2fd4 /tools/perf/scripts/python/bin | |
| parent | c369299895a591d96745d6492d4888259b004a9e (diff) | |
spi: imx: fix use-after-free on unbind
The SPI subsystem frees the controller and any subsystem allocated
driver data as part of deregistration (unless the allocation is device
managed).
Take another reference before deregistering the controller so that the
driver data is not freed until the driver is done with it.
Fixes: 307c897db762 ("spi: spi-imx: replace struct spi_imx_data::bitbang by pointer to struct spi_controller")
Cc: stable@vger.kernel.org # 5.19
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260324082326.901043-2-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
