summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-09-17 16:42:46 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-10-01 21:43:44 +0300
commitc0f02536fffbbec71aced36d52a765f8c4493dc2 (patch)
treeb0096f7280ab03428a790605d09af3cd94b5e4f5 /tools/perf/scripts/python
parent8b4865cd904650cbed7f2407e653934c621b8127 (diff)
downloadlinux-c0f02536fffbbec71aced36d52a765f8c4493dc2.tar.xz
cpufreq: Avoid a bad reference count on CPU node
In the parse_perf_domain function, if the call to of_parse_phandle_with_args returns an error, then the reference to the CPU device node that was acquired at the start of the function would not be properly decremented. Address this by declaring the variable with the __free(device_node) cleanup attribute. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Link: https://patch.msgid.link/20240917134246.584026-1-mikisabate@gmail.com Cc: All applicable <stable@vger.kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions