diff options
| author | Yu Zhao <[email protected]> | 2018-09-19 21:30:51 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2018-09-20 16:04:51 +0000 |
| commit | fb6de923ca3358a91525552b4907d4cb38730bdd (patch) | |
| tree | 720cba8bacfb584d8a746769d08e9fa480dc317e /drivers/scsi/mpt3sas/mpi/mpi2_raid.h | |
| parent | regulator: Fix 'do-nothing' value for regulators without suspend state (diff) | |
| download | kernel-fb6de923ca3358a91525552b4907d4cb38730bdd.tar.gz kernel-fb6de923ca3358a91525552b4907d4cb38730bdd.zip | |
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions
