Message ID | 1452920477-13916-2-git-send-email-zhaoshenglong@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/xen/drivers/acpi/tables.c b/xen/drivers/acpi/tables.c index 60c4ab1..39f1223 100644 --- a/xen/drivers/acpi/tables.c +++ b/xen/drivers/acpi/tables.c @@ -210,6 +210,9 @@ acpi_table_parse_entries(char *id, unsigned int count = 0; unsigned long table_end; + if (acpi_disabled) + return -ENODEV; + if (!handler) return -EINVAL; @@ -279,6 +282,9 @@ int __init acpi_table_parse(char *id, acpi_table_handler handler) { struct acpi_table_header *table = NULL; + if (acpi_disabled) + return -ENODEV; + if (!handler) return -EINVAL;