summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/components/resources/rscalc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/dev/acpica/components/resources/rscalc.c')
-rw-r--r--sys/contrib/dev/acpica/components/resources/rscalc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/contrib/dev/acpica/components/resources/rscalc.c b/sys/contrib/dev/acpica/components/resources/rscalc.c
index 9dd3321..7fadb41 100644
--- a/sys/contrib/dev/acpica/components/resources/rscalc.c
+++ b/sys/contrib/dev/acpica/components/resources/rscalc.c
@@ -371,8 +371,8 @@ AcpiRsGetAmlLength (
break;
-
default:
+
break;
}
@@ -562,6 +562,7 @@ AcpiRsGetListLength (
break;
default:
+
break;
}
@@ -676,7 +677,9 @@ AcpiRsGetPciRoutingTableLength (
NameFound = FALSE;
- for (TableIndex = 0; TableIndex < 4 && !NameFound; TableIndex++)
+ for (TableIndex = 0;
+ TableIndex < PackageElement->Package.Count && !NameFound;
+ TableIndex++)
{
if (*SubObjectList && /* Null object allowed */
OpenPOWER on IntegriCloud