diff options
| author | Xixin Liu <liuxixin@kylinos.cn> | 2026-07-28 08:50:00 +0800 |
|---|---|---|
| committer | Sudeep Holla <sudeep.holla@kernel.org> | 2026-09-01 11:44:59 +0100 |
| commit | 65320b642025c53063372bd34a376bec7bf15598 (patch) | |
| tree | dc644ae506171be4bf617c405186ee982f559d05 /tools/perf/scripts/python | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
| download | linux-next-65320b642025c53063372bd34a376bec7bf15598.tar.gz linux-next-65320b642025c53063372bd34a376bec7bf15598.zip | |
firmware: arm_scpi: fix device_node leak in scpi_dev_domain_id
of_parse_phandle_with_args() takes a reference on clkspec.np that must be
released with of_node_put(). scpi_dev_domain_id() returned clkspec.args[0]
without dropping that reference, so every domain lookup leaked a device
node. Paths such as scpi_dvfs_info() / cpufreq init call this per CPU, so
the leak accumulates over time.
Save the domain id, of_node_put(clkspec.np), then return the saved value.
Signed-off-by: Xixin Liu <liuxixin@kylinos.cn>
Link: https://patch.msgid.link/84fdd490495b.v2.1785200642.git.liuxixin@kylinos.cn
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
