Thread (6 messages) flat view 6 messages, 2 authors, 2018-06-04

Re: [v2,1/4] powerpc/perf: Rearrange memory freeing in imc init

From: Michael Ellerman <hidden>
Date: 2018-06-04 14:11:03

On Tue, 2018-05-22 at 09:12:34 UTC, Anju T Sudhakar wrote:
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 <redacted>
Reviewed-by: Madhavan Srinivasan <redacted>
Series applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/cb094fa5af7c9623084aa4c3cf529b

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help