|
@@ -461,8 +461,11 @@ static int __init acpi_pcc_probe(void)
|
|
|
count = acpi_table_parse_entries_array(ACPI_SIG_PCCT,
|
|
|
sizeof(struct acpi_table_pcct), proc,
|
|
|
ACPI_PCCT_TYPE_RESERVED, MAX_PCC_SUBSPACES);
|
|
|
- if (count == 0 || count > MAX_PCC_SUBSPACES) {
|
|
|
- pr_warn("Invalid PCCT: %d PCC subspaces\n", count);
|
|
|
+ if (count <= 0 || count > MAX_PCC_SUBSPACES) {
|
|
|
+ if (count < 0)
|
|
|
+ pr_warn("Error parsing PCC subspaces from PCCT\n");
|
|
|
+ else
|
|
|
+ pr_warn("Invalid PCCT: %d PCC subspaces\n", count);
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|