diff options
author | Johan Hovold <johan@kernel.org> | 2017-10-30 13:35:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-21 11:49:24 +0300 |
commit | 9aacd82304adb74fa9320cb1c5d4bc71b1b91f06 (patch) | |
tree | 3d1de9fbcef4ef03d4a3fb63e9a624e04053c1ba /arch/sparc/include/asm/cmpxchg_32.h | |
parent | d3e36fd07b5b27768db8353a83dec0459bf2ee33 (diff) | |
download | linux-9aacd82304adb74fa9320cb1c5d4bc71b1b91f06.tar.xz |
spi: fix use-after-free at controller deregistration
commit 67f7b2781fafcc0f52464880154b320fea1ae982 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/sparc/include/asm/cmpxchg_32.h')
0 files changed, 0 insertions, 0 deletions