diff options
author | Yu Zhao <yuzhao@google.com> | 2018-09-20 00:30:51 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-20 19:04:51 +0300 |
commit | fb6de923ca3358a91525552b4907d4cb38730bdd (patch) | |
tree | 720cba8bacfb584d8a746769d08e9fa480dc317e /drivers/regulator/pv88090-regulator.h | |
parent | 3edd79cf5a44b12dbb13bc320f5788aed6562b36 (diff) | |
download | linux-fb6de923ca3358a91525552b4907d4cb38730bdd.tar.xz |
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
Diffstat (limited to 'drivers/regulator/pv88090-regulator.h')
0 files changed, 0 insertions, 0 deletions