Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4507d577 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

spi: spi-axi: fix potential use-after-free after deregistration




[ Upstream commit 4d5e0689 ]

Take an extra reference to the controller before deregistering it to
prevent use-after-free in the interrupt handler in case an interrupt
fires before the line is disabled.

Fixes: b1353d1c ("spi: Add Analog Devices AXI SPI Engine controller support")
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d9bf2350
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment