Skip to content

Commit

Permalink
Clean up context mutex during object deletion
Browse files Browse the repository at this point in the history
Fixes: c9e0116 ("Fix race in GenericSerialBus (I2C) and GPIO OpRegion parameter handling")
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>
  • Loading branch information
Erik Kaneda committed May 19, 2021
1 parent 16f4f94 commit bc43c87
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/components/utilities/utdelete.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,14 @@ AcpiUtDeleteInternalObj (
}
break;

case ACPI_TYPE_LOCAL_ADDRESS_HANDLER:

ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS,
"***** Address handler %p\n", Object));

AcpiOsDeleteMutex (Object->AddressSpace.ContextMutex);
break;

default:

break;
Expand Down

0 comments on commit bc43c87

Please sign in to comment.