commit | 2c0a303a128cbef54a7b58dc2e413b874d760097 | [log] [tgz] |
---|---|---|
author | Mark Brown <broonie@kernel.org> | Tue Apr 12 08:05:43 2016 +0100 |
committer | Mark Brown <broonie@kernel.org> | Wed Apr 13 07:43:00 2016 +0100 |
tree | 94214f415ad4d80a6de16846220532d584296cc5 | |
parent | e437b90026ac754a0f8b4fe44b844d12ce6162d1 [diff] |
regulator: core: Fix locking of GPIO list on free When we acquire a shareable enable GPIO on probe we do so with the regulator_list_mutex held. However when we release the GPIOs we do this immediately after dropping the mutex meaning that the list could become corrupted. Move the release into the locked region to avoid this. Signed-off-by: Mark Brown <broonie@kernel.org>