diff options
Diffstat (limited to 'source/components/resources/rscalc.c')
-rw-r--r-- | source/components/resources/rscalc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/components/resources/rscalc.c b/source/components/resources/rscalc.c index b5c39da31..76aa44ff8 100644 --- a/source/components/resources/rscalc.c +++ b/source/components/resources/rscalc.c @@ -656,6 +656,14 @@ AcpiRsGetPciRoutingTableLength ( PackageElement = *TopObjectList; + /* We must have a valid Package object */ + + if (!PackageElement || + (PackageElement->Common.Type != ACPI_TYPE_PACKAGE)) + { + return_ACPI_STATUS (AE_AML_OPERAND_TYPE); + } + /* * The SubObjectList will now point to an array of the * four IRQ elements: Address, Pin, Source and SourceIndex |