Johan Hovold 67f7b2781f
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>
2017-10-31 11:09:23 +00:00
..
2017-07-17 12:09:38 +01:00
2016-08-19 16:24:39 +01:00
2016-07-07 11:44:43 +02:00
2015-12-07 20:09:09 +00:00
2017-05-24 18:19:25 +01:00
2017-08-23 17:12:05 +01:00
2017-01-23 18:09:37 +00:00
2017-08-10 15:50:23 +01:00
2017-05-26 12:41:07 +01:00