diff mbox series

[1/1] ACPICA: Clean up context mutex during object deletion

Message ID 20210521222808.2174134-2-erik.kaneda@intel.com
State Accepted
Commit e4dfe108371214500ee10c2cf19268f53acaa803
Headers show
Series [1/1] ACPICA: Clean up context mutex during object deletion | expand

Commit Message

Erik Kaneda May 21, 2021, 10:28 p.m. UTC
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 <john.garry@huawei.com>
Reported-by: Xiang Chen <chenxiang66@hisilicon.com>
Tested-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
---
 drivers/acpi/acpica/utdelete.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Rafael J. Wysocki May 24, 2021, 2:24 p.m. UTC | #1
On Sat, May 22, 2021 at 1:02 AM Erik Kaneda <erik.kaneda@intel.com> wrote:
>

> 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 <john.garry@huawei.com>

> Reported-by: Xiang Chen <chenxiang66@hisilicon.com>

> Tested-by: Xiang Chen <chenxiang66@hisilicon.com>

> Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>

> Signed-off-by: Bob Moore <robert.moore@intel.com>

> ---

>  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;

> --


Applied as 5.13-rc material, thanks!
diff mbox series

Patch

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;