aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAnju T Sudhakar <[email protected]>2018-05-22 14:42:34 +0530
committerMichael Ellerman <[email protected]>2018-06-03 20:43:36 +1000
commitcb094fa5af7c9623084aa4c3cf529b196f5c3b5c (patch)
tree3603b714c9bb76b3aea84113998f8a27dd9fdb86 /tools/perf/scripts/python/bin
parent589b1f7e4b0db4c31cef3b55f7514857bfc4b093 (diff)
powerpc/perf: Rearrange memory freeing in imc init
When any of the IMC (In-Memory Collection counter) devices fail to initialize, imc_common_mem_free() frees set of memory. In doing so, pmu_ptr pointer is also freed. But pmu_ptr pointer is used in subsequent function (imc_common_cpuhp_mem_free()) which is wrong. Patch here reorders the code to avoid such access. Also free the memory which is dynamically allocated during imc initialization, wherever required. Signed-off-by: Anju T Sudhakar <[email protected]> Reviewed-by: Madhavan Srinivasan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions