Fix ACPI_FUNCTION_ENTRY()

This commit is contained in:
Saket Dumbre 2023-04-26 11:21:46 -07:00
parent 24dc245931
commit 54dede760b

View File

@ -431,12 +431,12 @@ AcpiRsGetAddressCommon (
ACPI_RESOURCE *Resource,
AML_RESOURCE *Aml)
{
ACPI_FUNCTION_ENTRY ();
/* Avoid undefined behavior: member access within misaligned address */
AML_RESOURCE_ADDRESS Address;
memcpy(&Address, Aml, sizeof(Address));
ACPI_FUNCTION_ENTRY();
/* Validate the Resource Type */