]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Fix double unlock in imc_common_cpuhp_mem_free()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 11 Aug 2017 20:05:41 +0000 (23:05 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Aug 2017 11:57:55 +0000 (21:57 +1000)
commit7a7371db25600f482e63a3b1ce0cac34f9791214
tree7cea5b3269ec158803fd6901c6ca95f0359d5159
parent2e1057b837faf66ca6f0c189d0ea7929377ff27a
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: dcce62d368fa ("powerpc/perf: Add nest IMC PMU support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/imc-pmu.c