diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-17 16:51:30 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-18 18:09:17 +0100 |
| commit | b2c0e5bf750e33b0e1dcdfbb2df8103a06c7caab (patch) | |
| tree | b0e82a71812483a81bc20e75b75a018c5d7ca4de /tools/perf/scripts/python/task-analyzer.py | |
| parent | 5ea495bccfd746b063bc6702064f167467717b41 (diff) | |
ASoC: codecs: wm8994: Fix runtime PM leak in wm8994_mic_detect()
wm8994_mic_detect() resumes the component before configuring the MICBIAS
pins, but the default case of the micbias switch returns -EINVAL right
after taking that reference, skipping the pm_runtime_put() on the
success path. This leaks a runtime PM reference on every call with an
invalid micbias.
Release the reference before returning -EINVAL.
Fixes: f5a2cda4f1db ("ASoC: wm8994: Ensure the device is resumed in wm89xx_mic_detect functions")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260917165130.2163278-1-vulab@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
