aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2021-06-18 08:01:27 +0000
committerViresh Kumar <[email protected]>2021-07-01 02:02:01 +0000
commitfe2535a44904a77615a3af8e8fd7dafb98fb0e1b (patch)
tree4226c6168a7bcca675f64abef193dc890885173f /tools/perf/scripts/python
parentcpufreq: CPPC: Migrate to ->exit() callback instead of ->stop_cpu() (diff)
downloadkernel-fe2535a44904a77615a3af8e8fd7dafb98fb0e1b.tar.gz
kernel-fe2535a44904a77615a3af8e8fd7dafb98fb0e1b.zip
cpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init
It's a classic example of memleak, we allocate something, we fail and never free the resources. Make sure we free all resources on policy ->init() failures. Fixes: a28b2bfc099c ("cppc_cpufreq: replace per-cpu data array with a list") Tested-by: Vincent Guittot <[email protected]> Reviewed-by: Ionela Voinescu <[email protected]> Tested-by: Qian Cai <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions