[GIT PULL] SPI fixes for v7.0-rc5

From: Mark Brown

Date: Fri Mar 27 2026 - 15:05:53 EST


The following changes since commit c369299895a591d96745d6492d4888259b004a9e:

Linux 7.0-rc5 (2026-03-22 14:42:17 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-fix-v7.0-rc5

for you to fetch changes up to b341c1176f2e001b3adf0b47154fc31589f7410e:

spi: spi-fsl-lpspi: fix teardown order issue (UAF) (2026-03-26 12:27:42 +0000)

----------------------------------------------------------------
spi: Fixes for v7.0

There are two core fixes here. One is from Johan dealing with an issue
introduced by a devm_ API usage update causing things to be freed
earlier than they had earlier when we fail to register a device, another
from Danilo avoids unlocked acccess to data by converting to use a
driver core API.

We also have a few relatively minor driver specific fixes.

----------------------------------------------------------------
Danilo Krummrich (1):
spi: use generic driver_override infrastructure

Felix Gu (3):
spi: sn-f-ospi: Fix resource leak in f_ospi_probe()
spi: sn-f-ospi: Use devm_mutex_init() to simplify code
spi: meson-spicc: Fix double-put in remove path

Johan Hovold (1):
spi: fix use-after-free on managed registration failure

Marc Kleine-Budde (1):
spi: spi-fsl-lpspi: fix teardown order issue (UAF)

drivers/spi/spi-fsl-lpspi.c | 3 ++-
drivers/spi/spi-meson-spicc.c | 2 --
drivers/spi/spi-sn-f-ospi.c | 42 ++++++++++--------------------------------
drivers/spi/spi.c | 32 +++++++++++++++++++-------------
include/linux/spi/spi.h | 5 -----
5 files changed, 31 insertions(+), 53 deletions(-)