Yu Zhao
fb6de923ca
regulator: fix crash caused by null driver data
...
dev_set_drvdata() needs to be called before device_register()
exposes device to userspace. Otherwise kernel crashes after it
gets null pointer from dev_get_drvdata() when userspace tries
to access sysfs entries.
[Removed backtrace for length -- broonie]
Signed-off-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
2018-09-20 09:04:51 -07:00
..
2018-03-09 13:01:17 +00:00
2017-01-31 20:32:26 +00:00
2017-01-31 20:32:53 +00:00
2017-01-31 20:35:49 +00:00
2014-10-20 16:21:29 +02:00
2016-07-12 11:23:50 +02:00
2018-04-16 13:08:59 +01:00
2018-06-12 16:19:22 -07:00
2017-01-31 20:36:10 +00:00
2017-01-31 20:38:27 +00:00
2018-05-24 15:17:07 +01:00
2018-06-19 16:12:01 +01:00
2017-04-25 16:36:31 +01:00
2018-06-12 16:19:22 -07:00
2016-04-11 15:15:36 +01:00
2018-04-23 15:46:12 +01:00
2018-06-12 16:19:22 -07:00
2018-07-24 11:58:37 +01:00
2018-08-29 15:07:18 +01:00
2018-09-20 09:04:51 -07:00
2018-07-24 15:37:08 +01:00
2015-12-22 23:59:57 +00:00
2016-07-20 17:00:34 +01:00
2018-02-16 17:05:45 +00:00
2017-06-07 19:47:24 +01:00
2018-07-04 07:17:08 +01:00
2016-07-15 11:45:26 +01:00
2018-02-16 17:05:52 +00:00
2017-10-31 11:01:14 +00:00
2014-10-20 16:21:29 +02:00
2016-09-26 09:40:22 -07:00
2017-02-04 11:37:25 +01:00
2014-12-14 16:10:09 -08:00
2017-08-21 16:57:53 +01:00
2018-06-07 14:23:08 +01:00
2018-06-07 14:23:08 +01:00
2018-06-12 16:19:22 -07:00
2017-04-06 19:29:37 +01:00
2017-04-30 22:17:31 +09:00
2017-06-07 20:25:49 +01:00
2017-06-14 18:27:20 +01:00
2018-05-17 16:05:48 +09:00
2015-07-14 18:53:01 +01:00
2015-08-30 14:39:48 +01:00
2018-08-10 17:30:29 +01:00
2018-05-24 16:50:28 +01:00
2016-02-05 18:57:09 +00:00
2016-11-11 15:36:38 +00:00
2016-04-14 14:46:05 +01:00
2016-04-14 14:46:19 +01:00
2017-05-19 17:56:37 +01:00
2015-12-23 00:01:23 +00:00
2018-05-24 16:50:31 +01:00
2018-04-17 10:57:21 +01:00
2017-08-21 18:10:42 +01:00
2018-05-02 06:00:20 +09:00
2018-08-10 17:30:29 +01:00
2018-06-12 16:19:22 -07:00
2015-01-05 20:10:13 +00:00
2018-06-12 16:19:22 -07:00
2017-01-31 20:54:26 +00:00
2017-01-31 20:54:41 +00:00
2018-05-24 16:50:36 +01:00
2018-05-24 16:50:25 +01:00
2018-08-08 10:52:50 +01:00
2018-08-08 10:52:50 +01:00
2018-08-08 10:52:50 +01:00
2017-01-31 20:52:52 +00:00
2018-08-08 10:52:50 +01:00
2018-08-08 10:52:50 +01:00
2018-08-08 10:52:50 +01:00
2018-06-12 16:19:22 -07:00
2014-06-09 20:50:35 +01:00
2018-06-08 13:08:57 -07:00
2018-06-08 13:08:57 -07:00
2015-12-18 12:14:27 +00:00
2015-07-24 12:30:49 +01:00
2016-07-19 18:31:59 +01:00
2017-08-15 12:50:48 +01:00
2016-05-30 16:29:43 +01:00
2018-09-03 16:10:40 +01:00
2017-07-03 16:52:21 +01:00
2018-06-12 16:19:22 -07:00
2017-01-31 20:57:31 +00:00
2017-01-31 20:58:15 +00:00
2018-07-23 20:09:31 +01:00
2017-01-31 20:58:46 +00:00
2015-11-20 18:06:15 +00:00
2017-01-31 20:59:01 +00:00
2016-09-26 08:59:08 -07:00
2017-08-30 16:12:17 +01:00
2017-08-30 16:12:17 +01:00
2017-07-24 16:26:35 +01:00
2017-07-07 13:42:03 +01:00
2018-03-28 10:33:51 +08:00
2018-07-20 17:40:57 +01:00
2018-08-10 17:30:29 +01:00
2018-06-12 16:19:22 -07:00
2017-08-21 08:54:12 +01:00
2017-10-18 11:23:21 +01:00
2014-12-24 12:54:56 +00:00
2018-08-08 10:52:54 +01:00
2018-08-08 10:52:54 +01:00
2018-08-08 10:52:54 +01:00
2018-01-03 12:10:14 +00:00
2014-12-02 12:22:39 +00:00
2018-02-08 15:28:35 +00:00
2016-11-13 09:22:37 +00:00
2018-05-09 18:25:06 +09:00
2018-06-12 16:19:22 -07:00
2015-11-18 13:19:47 +00:00
2016-10-24 17:49:14 +01:00
2016-04-20 17:37:59 +01:00
2018-04-20 11:44:34 +01:00
2016-05-31 16:38:01 +01:00
2015-07-14 18:53:01 +01:00
2017-04-18 18:55:05 +01:00
2017-02-13 18:04:28 +00:00
2018-06-12 16:19:22 -07:00
2017-04-14 17:59:32 +01:00
2018-07-30 09:41:04 +01:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-07-07 17:52:26 +02:00
2018-06-12 16:19:22 -07:00
2017-09-04 14:41:02 +01:00
2018-04-20 12:45:36 +01:00
2018-07-11 10:30:32 +01:00
2017-04-14 18:01:03 +01:00
2016-02-15 21:01:52 +00:00
2014-10-20 16:21:29 +02:00
2016-01-12 18:26:12 +00:00
2015-12-23 00:00:00 +00:00
2016-01-12 18:26:12 +00:00
2018-04-23 12:26:05 +01:00
2015-12-23 00:00:00 +00:00
2018-05-30 15:17:03 +01:00