Searched hist:"67 f7b2781fafcc0f52464880154b320fea1ae982" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/spi/ |
H A D | spi.c | diff 67f7b2781fafcc0f52464880154b320fea1ae982 Mon Oct 30 11:35:25 CET 2017 Johan Hovold <johan@kernel.org> 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>
|