diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-16 07:27:37 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-16 22:07:39 +0100 |
| commit | 480a5528cb6268d626632d45d4a1f29b4c0c11df (patch) | |
| tree | 41df755fd8e4158a288a8c982edb1ead04ae0537 /tools/perf/scripts/python | |
| parent | 34feb0b0080f81001d5bd9d7946fffd0d2e7c1f4 (diff) | |
ASoC: wm8994: Fix runtime PM imbalance in wm8994_component_probe()
In wm8994_component_probe(), pm_runtime_get_sync() is invoked before
reading the GPIO configuration registers. If either regmap_read() fails,
the function jumps to err_irq without calling pm_runtime_put(), leaving
the runtime PM usage count incremented and causing a leak.
Add pm_runtime_put() on both GPIO read failure paths before jumping to
err_irq.
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/20260916072737.1970990-1-vulab@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
