]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: Use after free fixes
authorMark Brown <broonie@kernel.org>
Tue, 24 Mar 2026 14:25:52 +0000 (14:25 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 24 Mar 2026 14:25:52 +0000 (14:25 +0000)
commitfa0561a1d583caece08d1fb904304c92c561e86a
treeeb426d9feb3db1ac49ebc12e2a2210936f3db9ac
parent1fe7579ab0a51513ba35cfb3cde62706df31912f
parent7f3eb70516c7d3aa30ed8eb609344ffc9885fc51
spi: Use after free fixes

Johan Hovold <johan@kernel.org> says:

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.