summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorGuangshuo Li <lgs201920130244@gmail.com>2026-07-08 19:20:58 +0800
committerBrian Masney <bmasney@redhat.com>2026-07-28 11:25:29 -0400
commitf726279f5eab813f9a8b6f38ddf2a4b062d038ff (patch)
treea4ad5870bac39c5e458dff217ff6579f010ef4d7 /tools/perf/scripts/python/task-analyzer.py
parent584dfca970a256fb4af0121017862a9259cc019e (diff)
clk: tegra: tegra124-emc: put EMC node on register failure
tegra124_clk_register_emc() stores a device node reference returned by of_parse_phandle() in tegra->emc_node. If clk_register() fails, the function returns an error before that reference can be consumed and released by the normal runtime path. The tegra_clk_emc object is freed on this failure path, but freeing the object does not drop the OF node reference stored in it. Drop the EMC node reference before freeing the tegra_clk_emc object. of_node_put() is safe for a NULL node, so this also covers the case where the phandle is absent. Fixes: 2db04f16b589 ("clk: tegra: Add EMC clock driver") Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com> Reviewed-by: Brian Masney <bmasney@redhat.com> Signed-off-by: Brian Masney <bmasney@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions