diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-17 14:28:10 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-17 21:25:19 +0100 |
| commit | 195bbe5e1c29aa1349655a6162958149c1176034 (patch) | |
| tree | 9ecc2a5a1e4405d60e8b0cc816cfb9d8f78e9ea0 /tools/perf/scripts/python/stackcollapse.py | |
| parent | c41b69e9f76fd9632662714c1d37860468e8d773 (diff) | |
regulator: core: Fix rdev reference leak in regulator_resolve_supply()
regulator_resolve_supply() takes a reference on the looked-up regulator
with regulator_dev_lookup(), but when the supply resolves to the
regulator itself that reference is never dropped: it leaks on the early
return and is lost as well when r is replaced with the dummy regulator.
Release the reference before handling the self-referent case.
Fixes: 4b639e254d3d ("regulator: avoid resolve_supply() infinite recursion")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20260917142810.2156816-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
