mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
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.
This commit is contained in:
commit
fa0561a1d5
3 changed files with 40 additions and 67 deletions
Loading…
Add table
Add a link
Reference in a new issue