diff options
| author | Viresh Kumar <[email protected]> | 2021-06-18 08:01:27 +0000 |
|---|---|---|
| committer | Viresh Kumar <[email protected]> | 2021-07-01 02:02:01 +0000 |
| commit | fe2535a44904a77615a3af8e8fd7dafb98fb0e1b (patch) | |
| tree | 4226c6168a7bcca675f64abef193dc890885173f /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | cpufreq: CPPC: Migrate to ->exit() callback instead of ->stop_cpu() (diff) | |
| download | kernel-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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
