diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2016-03-30 19:09:13 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-30 21:03:54 +0300 |
commit | a2151374230820a3a6e654f2998b2a44dbfae4e1 (patch) | |
tree | 666f47abfa742a71fde56c3b5267db66410c896e /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 5e3ca2b349b1e2c80b060b51bbf2af37448fad85 (diff) | |
download | linux-a2151374230820a3a6e654f2998b2a44dbfae4e1.tar.xz |
regulator: Fix deadlock during regulator registration
Commit 5e3ca2b349b1 ("regulator: Try to resolve regulators supplies on
registration") added a call to regulator_resolve_supply() within
regulator_register() where the regulator_list_mutex is held. This causes
a deadlock to occur on the Tegra114 Dalmore board when the palmas PMIC
is registered because regulator_register_resolve_supply() calls
regulator_dev_lookup() which may try to acquire the regulator_list_mutex
again.
Fix this by releasing the mutex before calling
regulator_register_resolve_supply() and update the error exit path to
ensure the mutex is released on an error.
[Made commit message more legible -- broonie]
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions