Skip to content
Unverified Commit 67f7b278 authored by Johan Hovold's avatar Johan Hovold Committed by Mark Brown
Browse files

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: 9b61e302 ("spi: Pick spi bus number from Linux idr or spi alias")
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Cc: stable <stable@vger.kernel.org>
parent 2bd6bf03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment