From patchwork Fri May 21 22:28:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Kaneda X-Patchwork-Id: 444714 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-21.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17BA4C4707E for ; Fri, 21 May 2021 23:02:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E23A0613F6 for ; Fri, 21 May 2021 23:02:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbhEUXEU (ORCPT ); Fri, 21 May 2021 19:04:20 -0400 Received: from mga07.intel.com ([134.134.136.100]:11009 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229940AbhEUXET (ORCPT ); Fri, 21 May 2021 19:04:19 -0400 IronPort-SDR: +ZBvmjp8SAYA+Inn+UUW04yrf6eGrP07Hk5TWZ6Pv5j4BxOL2K1av+aRPIjG5K4sVNFIwQ1h7N mW+f7Vohg4wQ== X-IronPort-AV: E=McAfee;i="6200,9189,9991"; a="265494911" X-IronPort-AV: E=Sophos;i="5.82,319,1613462400"; d="scan'208";a="265494911" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2021 16:02:56 -0700 IronPort-SDR: oTi5bua53XFi6OMW6VoIRbJZvHk0QFmf7C1hG4OtKd6aStlRpyW4jGCG4vgdvIgyd3R/MKR9wG fOnFRchGP2dQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,319,1613462400"; d="scan'208";a="544253758" Received: from sibelius.jf.intel.com ([10.54.75.166]) by fmsmga001.fm.intel.com with ESMTP; 21 May 2021 16:02:55 -0700 From: Erik Kaneda To: "Rafael J . Wysocki" , ACPI Devel Maling List Cc: Erik Kaneda , John Garry , Xiang Chen , Bob Moore Subject: [PATCH 1/1] ACPICA: Clean up context mutex during object deletion Date: Fri, 21 May 2021 15:28:08 -0700 Message-Id: <20210521222808.2174134-2-erik.kaneda@intel.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210521222808.2174134-1-erik.kaneda@intel.com> References: <20210521222808.2174134-1-erik.kaneda@intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org ACPICA commit bc43c878fd4ff27ba75b1d111b97ee90d4a82707 Fixes: c27f3d011b08 ("Fix race in GenericSerialBus (I2C) and GPIO OpRegion parameter handling") Link: https://github.com/acpica/acpica/commit/bc43c878 Reported-by: John Garry Reported-by: Xiang Chen Tested-by: Xiang Chen Signed-off-by: Erik Kaneda Signed-off-by: Bob Moore --- drivers/acpi/acpica/utdelete.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/acpica/utdelete.c b/drivers/acpi/acpica/utdelete.c index 624a26794d55..e5ba9795ec69 100644 --- a/drivers/acpi/acpica/utdelete.c +++ b/drivers/acpi/acpica/utdelete.c @@ -285,6 +285,14 @@ static void acpi_ut_delete_internal_obj(union acpi_operand_object *object) } break; + case ACPI_TYPE_LOCAL_ADDRESS_HANDLER: + + ACPI_DEBUG_PRINT((ACPI_DB_ALLOCATIONS, + "***** Address handler %p\n", object)); + + acpi_os_delete_mutex(object->address_space.context_mutex); + break; + default: break;