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-09-04 15:51:26 +01:00
2017-07-03 16:21:12 +01:00
2017-08-16 11:53:31 +01:00
2017-02-19 16:40:55 +00:00
2017-07-17 12:09:38 +01:00
2017-07-03 16:21:06 +01:00
2017-01-09 11:20:46 +00:00
2017-01-06 18:21:50 +00:00
2017-09-04 15:51:14 +01:00
2017-08-08 11:36:35 +01:00
2016-02-15 20:43:39 +00:00
2016-03-11 14:28:25 +07:00
2017-07-28 11:11:35 +01:00
2016-09-24 20:03:25 +01:00
2016-07-03 14:14:31 +02:00
2016-07-03 14:24:31 +02:00
2016-09-14 18:03:32 +01:00
2015-12-02 19:38:16 +00:00
2017-08-08 10:43:41 +01:00
2016-07-24 21:54:29 +01:00
2016-08-24 12:37:43 +01:00
2016-07-24 21:54:29 +01:00
2016-08-19 16:24:39 +01:00
2016-07-07 11:44:43 +02:00
2017-06-06 19:36:45 +01:00
2016-04-26 11:56:09 +01:00
2017-01-04 12:27:00 +00:00
2017-04-18 19:16:49 +01:00
2016-05-11 18:26:19 +01:00
2017-01-09 11:22:14 +00:00
2017-01-09 11:22:14 +00:00
2017-08-09 17:53:14 +01:00
2017-09-01 11:33:22 +01:00
2015-12-22 17:12:56 -06:00
2017-05-22 16:14:22 +01:00
2016-12-01 18:50:59 +00:00
2016-11-14 11:21:48 +00:00
2017-01-09 19:34:02 +00:00
2017-04-26 15:58:04 +01:00
2016-07-27 19:00:16 +01:00
2017-08-29 21:09:03 +01:00
2016-09-24 20:03:25 +01:00
2016-11-23 16:42:20 +00:00
2017-04-26 15:58:04 +01:00
2015-12-07 20:09:09 +00:00
2017-07-26 13:08:56 +01:00
2016-02-26 11:06:38 +09:00
2017-05-24 18:19:25 +01:00
2016-09-12 20:11:39 +01:00
2016-07-03 14:23:25 +02:00
2017-01-17 18:28:19 +00:00
2017-06-20 13:39:14 +01:00
2017-08-18 12:15:41 +01:00
2017-07-19 11:56:23 +01:00
2016-08-08 11:56:40 +01:00
2017-07-26 13:04:21 +01:00
2017-08-23 17:12:05 +01:00
2017-01-17 18:34:25 +00:00
2016-09-12 20:01:27 +01:00
2017-01-23 18:09:37 +00:00
2017-08-04 12:41:55 +01:00
2017-08-04 12:41:55 +01:00
2017-08-10 15:50:23 +01:00
2017-08-16 11:58:23 +01:00
2017-02-19 16:41:05 +00:00
2017-02-19 16:41:05 +00:00
2017-02-22 10:50:09 -08:00
2017-07-17 12:09:59 +01:00
2017-08-09 17:18:06 +01:00
2017-06-28 20:02:52 +01:00
2017-05-26 13:12:19 +01:00
2017-05-26 13:12:04 +01:00
2017-05-26 12:41:07 +01:00
2017-07-19 17:05:46 +01:00
2016-10-29 12:11:30 -06:00
2017-07-19 17:06:03 +01:00
2017-07-19 17:06:31 +01:00
2017-07-19 17:06:26 +01:00
2017-07-19 17:06:28 +01:00
2017-03-17 21:54:08 +00:00
2017-04-26 15:58:22 +01:00
2017-01-17 18:38:02 +00:00
2016-08-18 19:10:39 +01:00
2016-07-15 11:45:00 +01:00
2017-08-08 11:36:07 +01:00
2016-05-04 14:21:03 +01:00
2017-10-31 11:09:23 +00:00
2017-07-08 10:41:53 -07:00