Commit b3376dcc authored by Dan Carpenter's avatar Dan Carpenter Committed by Michael Ellerman
Browse files

powerpc/perf: Fix double unlock in imc_common_cpuhp_mem_free()

This function is not called with the nest_init_lock held, and it also
unlocks the nest_init_lock immediately below, so it's fairly clear
that this is a typo and should be locking the lock.

Fixes: 885dcd70

 ("powerpc/perf: Add nest IMC PMU support")
Signed-off-by: default avatarDan Carpenter <>
Signed-off-by: default avatarMichael Ellerman <>
parent ab2675d6
......@@ -1124,7 +1124,7 @@ static void cleanup_all_thread_imc_memory(void)
static void imc_common_cpuhp_mem_free(struct imc_pmu *pmu_ptr)
if (pmu_ptr->domain == IMC_DOMAIN_NEST) {
if (nest_pmus == 1) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment