diff for duplicates of <20170811200541.qlxcpp3og33sdki3@mwanda> diff --git a/a/1.txt b/N1/1.txt index 0271eff..483ea40 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -14,9 +14,9 @@ index 46cd912af060..52017f6eafd9 100644 @@ -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 (pmu_ptr->domain == IMC_DOMAIN_NEST) { - mutex_unlock(&nest_init_lock); + mutex_lock(&nest_init_lock); - if (nest_pmus = 1) { + if (nest_pmus == 1) { cpuhp_remove_state(CPUHP_AP_PERF_POWERPC_NEST_IMC_ONLINE); kfree(nest_imc_refc); diff --git a/a/content_digest b/N1/content_digest index 63c1917..68d2167 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Subject\0[PATCH] powerpc/perf: double unlock bug in imc_common_cpuhp_mem_free()\0" - "Date\0Fri, 11 Aug 2017 20:05:41 +0000\0" + "Date\0Fri, 11 Aug 2017 23:05:41 +0300\0" "To\0Benjamin Herrenschmidt <benh@kernel.crashing.org>" " Anju T Sudhakar <anju@linux.vnet.ibm.com>\0" "Cc\0Paul Mackerras <paulus@samba.org>" @@ -27,11 +27,11 @@ "@@ -1124,7 +1124,7 @@ static void cleanup_all_thread_imc_memory(void)\n" " static void imc_common_cpuhp_mem_free(struct imc_pmu *pmu_ptr)\n" " {\n" - " \tif (pmu_ptr->domain = IMC_DOMAIN_NEST) {\n" + " \tif (pmu_ptr->domain == IMC_DOMAIN_NEST) {\n" "-\t\tmutex_unlock(&nest_init_lock);\n" "+\t\tmutex_lock(&nest_init_lock);\n" - " \t\tif (nest_pmus = 1) {\n" + " \t\tif (nest_pmus == 1) {\n" " \t\t\tcpuhp_remove_state(CPUHP_AP_PERF_POWERPC_NEST_IMC_ONLINE);\n" " \t\t\tkfree(nest_imc_refc);" -d6dd7d5da2b1100476de236312799cd2f2429f53e7faff56ace2a1cb910e1388 +38e885df4bb5fa1ae823f2eabdec464e3aeaf44fb7e247bec69cca08de60f824
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.