diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2023-10-03 17:55:55 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-10-09 14:03:35 +0200 |
commit | 69a026a2357ee69983690d07976de44ef26ee38a (patch) | |
tree | 12ddc95076a0b19ad5ae2e8572c64eea755e7431 /sound/soc/sti | |
parent | ASoC: codecs: wcd938x: fix resource leaks on bind errors (diff) | |
download | linux-69a026a2357ee69983690d07976de44ef26ee38a.tar.xz linux-69a026a2357ee69983690d07976de44ef26ee38a.zip |
ASoC: codecs: wcd938x: fix regulator leaks on probe errors
Make sure to disable and free the regulators on probe errors and on
driver unbind.
Fixes: 16572522aece ("ASoC: codecs: wcd938x-sdw: add SoundWire driver")
Cc: stable@vger.kernel.org # 5.14
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20231003155558.27079-5-johan+linaro@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sti')
0 files changed, 0 insertions, 0 deletions