Skip to content

Commit

Permalink
ACPICA: Clean up context mutex during object deletion
Browse files Browse the repository at this point in the history
[ Upstream commit e4dfe10 ]

ACPICA commit bc43c878fd4ff27ba75b1d111b97ee90d4a82707

Fixes: c27f3d0 ("Fix race in GenericSerialBus (I2C) and GPIO OpRegion parameter handling")
Link: acpica/acpica@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>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Erik Kaneda authored and gregkh committed Jun 10, 2021
1 parent df7c913 commit 100c872
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/acpi/acpica/utdelete.c
Expand Up @@ -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;
Expand Down

0 comments on commit 100c872

Please sign in to comment.