From edd910317b6a2253c88ec018b5c928ab2aaaede9 Mon Sep 17 00:00:00 2001 From: Erik Schmauss Date: Fri, 22 Feb 2019 15:49:08 -0800 Subject: [PATCH] PCC operation region: fix if statement by correctly checking the SpaceId Signed-off-by: Erik Schmauss --- source/components/dispatcher/dsfield.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/components/dispatcher/dsfield.c b/source/components/dispatcher/dsfield.c index cc0a271e4..3aff4db10 100644 --- a/source/components/dispatcher/dsfield.c +++ b/source/components/dispatcher/dsfield.c @@ -685,7 +685,7 @@ AcpiDsCreateField ( Info.RegionNode = RegionNode; 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 = ACPI_ALLOCATE_ZEROED(Info.RegionNode->Object->Region.Length))) {