diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-16 07:25:41 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-18 19:53:31 +0200 |
| commit | e0d673e5a5c4084f0da90c06ed3b0bc45e47d679 (patch) | |
| tree | 63981ce702211988e9d7f6c1835a316368ff7746 /tools/perf/scripts/python/stackcollapse.py | |
| parent | b53a09c957b682ce1d1f8e94a362c4466b6b74f6 (diff) | |
regulator: rt6190: Fix runtime PM imbalance in rt6190_out_enable()
In rt6190_out_enable(), pm_runtime_get_sync() is called at the start of
the function. However, if any subsequent regmap or regulator operation
fails, the function returns directly without dropping the runtime PM
reference, causing a runtime PM reference leak.
Add an error handling path with pm_runtime_put() to keep the reference
count balanced on failure.
Fixes: e6999e7cca7e ("regulator: rt6190: Add support for Richtek RT6190 regulator")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: ChiYuan Huang <cy_huang@richtek.com>
Link: https://patch.msgid.link/20260916072541.1968033-1-vulab@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
