mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 01:44:33 +03:00
PCC operation region: fix if statement by correctly checking the SpaceId
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
This commit is contained in:
parent
5719c9ef13
commit
edd910317b
@ -685,7 +685,7 @@ AcpiDsCreateField (
|
|||||||
Info.RegionNode = RegionNode;
|
Info.RegionNode = RegionNode;
|
||||||
|
|
||||||
Status = AcpiDsGetFieldNames (&Info, WalkState, Arg->Common.Next);
|
Status = AcpiDsGetFieldNames (&Info, WalkState, Arg->Common.Next);
|
||||||
if (Info.RegionNode->Type == ACPI_ADR_SPACE_PLATFORM_COMM &&
|
if (Info.RegionNode->Object->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_COMM &&
|
||||||
!(RegionNode->Object->Field.InternalPccBuffer
|
!(RegionNode->Object->Field.InternalPccBuffer
|
||||||
= ACPI_ALLOCATE_ZEROED(Info.RegionNode->Object->Region.Length)))
|
= ACPI_ALLOCATE_ZEROED(Info.RegionNode->Object->Region.Length)))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user