diff options
author | Johan Hovold <johan@kernel.org> | 2017-10-30 13:35:25 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-10-31 14:09:23 +0300 |
commit | 67f7b2781fafcc0f52464880154b320fea1ae982 (patch) | |
tree | 4ecd11b1646048334b8aae7bc2a5acdb9d918b40 /drivers/iio/Kconfig | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff) | |
download | linux-67f7b2781fafcc0f52464880154b320fea1ae982.tar.xz |
spi: fix use-after-free at controller deregistration
The controller is typically freed as part of device_unregister() so
store the bus id before deregistration to avoid use-after-free when the
id is later released.
Fixes: 9b61e302210e ("spi: Pick spi bus number from Linux idr or spi alias")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable <stable@vger.kernel.org>
Diffstat (limited to 'drivers/iio/Kconfig')
0 files changed, 0 insertions, 0 deletions