commit | 4d5e0689dc9d5640ad46cdfbe1896b74d8df1661 | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Mon Oct 30 11:35:27 2017 +0100 |
committer | Mark Brown <broonie@kernel.org> | Tue Oct 31 11:15:10 2017 +0000 |
tree | 56d826c088398ce60c2b610284348e4df0cc5a66 | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e [diff] |
spi: spi-axi: fix potential use-after-free after deregistration 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: b1353d1c1d45 ("spi: Add Analog Devices AXI SPI Engine controller support") Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>